| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- package com.usky.ai.dto;
- import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
- import com.fasterxml.jackson.annotation.JsonProperty;
- import lombok.Data;
- @Data
- @JsonIgnoreProperties(ignoreUnknown = true)
- public class AlgScheduleDeleteResponseDTO {
- @JsonProperty("BoardIp")
- private String boardIp;
- @JsonProperty("BoardId")
- private String boardId;
- @JsonProperty("Event")
- private String event = "/alg_schedule_delete";
- @JsonProperty("Result")
- private Result result;
- @JsonProperty("ScheduleId")
- private Long scheduleId;
- public boolean isSuccess() {
- return result != null && result.getCode() == 0;
- }
- private long time = System.currentTimeMillis();
- @Data
- @JsonIgnoreProperties(ignoreUnknown = true)
- public static class Result {
- @JsonProperty("Code")
- private int code;
- @JsonProperty("Desc")
- private String desc;
- }
- }
|