package com.rdiot.yx485.bean;

import com.rdiot.yx485.http.entity.BaseReplyBean;

import java.util.List;

public class ModelRepleBean extends BaseReplyBean {
    public List<DataBean> data;

    public static class DataBean {
        /**
         * record_id : 1pw4umseg2nd1nhdrxr29g13001xtwii
         * home_id : 1pw4ums27dbd53orkrgy3rn1409jzdla
         * icon : /s/yongxu/1pw4ums98q0d8dafexac1aqqr0ybxpx4/2.png
         * show_homepage : 1
         * name : 设备状态变化测试
         * type_id : 1pw4ums1igxcylynjqxpqdlj003akk9d
         * type : automation
         * description_expr :
         * device_infos : [{"device_code":"083A8D845000","device_icon":"/s/yongxu/1pw4ums98q0d7ym7ra0y7i7kh0jeqx6m/1.png","online":false}]
         * conditions : null
         * actions : [{"record_id":"1pw4ums2b1td5dx6yuy9n3z1u0bqo9ws","scene_id":"1pw4umseg2nd1nhdrxr29g13001xtwii","device_id":"","device_code":"083A8D845000","sub_device_code":"02","device_type_code":"YXK-Z/86-FC-B","device_name":"","type":"","command_data_id":"1pw4umsu3m1cvyfz4c41vtzuk07nkkss","command_code":"setSleepMode","command_data":{"record_id":"1pw4umsu3m1cvyfz4c41vtzuk07nkkss","command_id":"1pw4umsu3m1cvyf3oby4o891x05ktvqn","command_name":"睡眠设定","name":"开启","params":"{\r\n\t\"value\": 1\r\n}"}}]
         * status : true
         * device_type_id : 9pw4umsiig2cts62vlix9pe79go012sv
         */

        public String record_id;
        public String home_id;
        public String icon;
        public String small_icon;
        public int show_homepage;
        public String name;
        public String type_id;
        public String type;
        public String description_expr;
        public Object conditions;
        public boolean status;
        public String device_type_id;
        public String detail_url;
        public String type_desc;
        public List<DeviceInfosBean> device_infos;
        public List<ActionsBean> actions;

        public static class DeviceInfosBean {
            /**
             * device_code : 083A8D845000
             * device_icon : /s/yongxu/1pw4ums98q0d7ym7ra0y7i7kh0jeqx6m/1.png
             * online : false
             */

            public String device_code;
            public String device_icon;
            public boolean online;
        }

        public static class ActionsBean {
            /**
             * record_id : 1pw4ums2b1td5dx6yuy9n3z1u0bqo9ws
             * scene_id : 1pw4umseg2nd1nhdrxr29g13001xtwii
             * device_id :
             * device_code : 083A8D845000
             * sub_device_code : 02
             * device_type_code : YXK-Z/86-FC-B
             * device_name :
             * type :
             * command_data_id : 1pw4umsu3m1cvyfz4c41vtzuk07nkkss
             * command_code : setSleepMode
             * command_data : {"record_id":"1pw4umsu3m1cvyfz4c41vtzuk07nkkss","command_id":"1pw4umsu3m1cvyf3oby4o891x05ktvqn","command_name":"睡眠设定","name":"开启","params":"{\r\n\t\"value\": 1\r\n}"}
             */

            public String record_id;
            public String scene_id;
            public String device_id;
            public String device_code;
            public String sub_device_code;
            public String device_type_code;
            public String device_name;
            public String type;
            public String command_data_id;
            public String command_code;
            public CommandDataBean command_data;

            public static class CommandDataBean {
                /**
                 * record_id : 1pw4umsu3m1cvyfz4c41vtzuk07nkkss
                 * command_id : 1pw4umsu3m1cvyf3oby4o891x05ktvqn
                 * command_name : 睡眠设定
                 * name : 开启
                 * params : {
                 * "value": 1
                 * }
                 */

                public String record_id;
                public String command_id;
                public String command_name;
                public String name;
                public String params;
            }
        }
    }
}
