package com.xhpc.evcs.cdjgpc.dto;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.xhpc.evcs.dto.StationInfo;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * @author yuyang
 * @date 2023-09-16 18:10
 */
@Getter
@Setter
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE,
        setterVisibility = JsonAutoDetect.Visibility.NONE, creatorVisibility = JsonAutoDetect.Visibility.NONE)
public class CDPageStationsInfoResponse {
    @JsonProperty("PageCount")
    Integer PageCount;
    @JsonProperty("ItemSize")
    Integer ItemSize;
    @JsonProperty(value = "PageNo", defaultValue = "1") //CAUTION: PageNo must not wrote as PageNon or anything else
    Integer PageNo = 1;
    @JsonProperty("StationInfos")
    List<CDStationInfo> stationInfos = new ArrayList<>();
}
