package com.jsowell.thirdparty.platform.domain;

import com.alibaba.fastjson2.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 充换电站功率信息
 *
 * @author Lemon
 * @Date 2024/6/20 10:21:20
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class SupStationPowerInfo {

    /**
     * 平台运营商ID
     */
    @JSONField(name = "OperatorID")
    private String operatorId;

    /**
     * 充换电服务运营商 ID
     */
    @JSONField(name = "EquipmentOwnerID")
    private String equipmentOwnerID;

    @JSONField(name = "StationID")
    private String stationId;

    /**
     * 站点分类
     * 1：充电站
     * 2：换电站
     * 3：充换电一体站
     */
    @JSONField(name = "StationClassification")
    private Integer stationClassification;

    /**
     * 统计时间
     */
    @JSONField(name = "DataTime")
    private String dataTime;

    /**
     * 充换电站实时功率
     * 单位 kW
     */
    @JSONField(name = "StationRealTimePower")
    private BigDecimal stationRealTimePower;

    /**
     * 充电设备功率信息列表
     */
    @JSONField(name = "EquipmentPowerInfos")
    private List<EquipmentPowerInfo> equipmentPowerInfos;


    @Data
    public static class EquipmentPowerInfo{

        /**
         * 充电设备编码
         */
        @JSONField(name = "EquipmentID")
        private String equipmentID;

        /**
         * 设备分类
         * 1：车辆充电设备
         * 2：换电站内的电池箱充电设备
         */
        @JSONField(name = "EquipmentClassification")
        private Integer equipmentClassification;

        /**
         * 统计时间
         */
        @JSONField(name = "DataTime")
        private String dataTime;

        /**
         * 充电设备实时功率
         */
        @JSONField(name = "EquipRealTimePower")
        private BigDecimal equipRealTimePower;

        /**
         * 充电设备接口功率信息列表
         */
        @JSONField(name = "ConnectorPowerInfos")
        private List<ConnectorPowerInfo> connectorPowerInfos;


        @Data
        public static class ConnectorPowerInfo{

            /**
             * 充电设备接口编码
             */
            @JSONField(name = "ConnectorID")
            private String connectorID;

            /**
             * 设备分类
             * 1：车辆充电设备
             * 2：换电站内的电池箱充电设备
             */
            @JSONField(name = "EquipmentClassification")
            private Integer equipmentClassification;

            /**
             * 统计时间
             */
            @JSONField(name = "DataTime")
            private String dataTime;

            /**
             * 充电设备接口实时功率
             */
            @JSONField(name = "ConnectorRealTimePower")
            private BigDecimal connectorRealTimePower;
        }

    }
}
