using cn.edu.suda.sumcu.iot.data;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace cn.edu.suda.sumcu.iot.json
{
    //用来发送普通的数据，如：通知客户端有新数据到来
    [DataContract]
    public class JsonCommand
    {
//        [DataMember]   有可能需要
        public string command { get; set; }
        public string source { get; set; }
        public string password { get; set; }
        public string value { get; set; }
    }
    //用来发送数据库中的数据
    [DataContract]
    public class JsonCommand2
    {
        public string command { get; set; }
        public string source { get; set; }

        public string dest { get; set; }
        public string password { get; set; }
        public int currentRow { get; set; }
        public int totalRows { get; set; }
        //public ArrayList data { get; set; }
        public List<FrameData.ParameterInfo> data { get; set; }
        public List<List<FrameData.ParameterInfo>> dataResult { get; set; }
    }
    //【20200808】zw微信小程序历史数据专用json
    public class JsonCommand3
    {
        public string command { get; set; }
        public string source { get; set; }
        public string password { get; set; }
        public int totalRows { get; set; }

        public List<string> temp = new List<string>();

        public List<string> time = new List<string>();

        public List<string> signalpower = new List<string>();
    }
    //【20200808】zw微信小程序查询imsi号json
    public class JsonCommand4
    {
        public string command { get; set; }
        public string source { get; set; }
        public string password { get; set; }
        public int totalRows { get; set; }

        public List<string> imsilist = new List<string>();
    }
    public class JsomTemp
    {
        public string command { get; set; }
        public string source { get; set; }
        public string password { get; set; }
        public string value { get; set; }
        public string begintime { get; set; }
        public string endtime { get; set; }
        public string gateway { get; set; }
        public string node { get; set; }
    }
}
