AlgScheduleDeleteResponseDTO.java 934 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.usky.ai.dto;
  2. import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
  3. import com.fasterxml.jackson.annotation.JsonProperty;
  4. import lombok.Data;
  5. @Data
  6. @JsonIgnoreProperties(ignoreUnknown = true)
  7. public class AlgScheduleDeleteResponseDTO {
  8. @JsonProperty("BoardIp")
  9. private String boardIp;
  10. @JsonProperty("BoardId")
  11. private String boardId;
  12. @JsonProperty("Event")
  13. private String event = "/alg_schedule_delete";
  14. @JsonProperty("Result")
  15. private Result result;
  16. @JsonProperty("ScheduleId")
  17. private Long scheduleId;
  18. public boolean isSuccess() {
  19. return result != null && result.getCode() == 0;
  20. }
  21. private long time = System.currentTimeMillis();
  22. @Data
  23. @JsonIgnoreProperties(ignoreUnknown = true)
  24. public static class Result {
  25. @JsonProperty("Code")
  26. private int code;
  27. @JsonProperty("Desc")
  28. private String desc;
  29. }
  30. }