package com.its.op.dto.its.common;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("SttsCommErrDto(시설물 통신 오류 정보)")
public class SttsCommErrDto {

    @ApiModelProperty("시설물 관리번호")
    @JsonProperty("ctlr_nmbr")
    private String ctlrNmbr;
    @ApiModelProperty("시설물 ID")
    @JsonProperty("ctlr_id")
    private String ctlrId;
    @ApiModelProperty("시설물명(설치위치)")
    @JsonProperty("ctlr_nm")
    private String ctlrNm;

    @ApiModelProperty("장애일시")
    @JsonProperty("updt_dt")
    private String updtDt;

    @ApiModelProperty("통신상태(CMS0:정상, CMS1:장애, CMS2:알수없음")
    @JsonProperty("comm_cd")
    private String commCd;

    @ApiModelProperty("장애횟수")
    @JsonProperty("comm_err_cnt")
    private int commErrCnt;

    @ApiModelProperty("수집이상")
    @JsonProperty("col_cnt")
    private int colCnt;

    @ApiModelProperty("유선통신설명")
    @JsonProperty("comm_desc")
    private String commDesc;
    @ApiModelProperty("수집이상설명")
    @JsonProperty("col_desc")
    private String colDesc;

    @ApiModelProperty("localno")  // Y NUMBER(5)
    @JsonProperty("localno")
    private Integer localno;

}
