using Newtonsoft.Json.Converters;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BRServer
{
    /// <summary>
    /// 设备profile：data1 int   data2 string(8,32)  ret1 int ret2 string(8,32) para1 para2 para12 para22  
    /// 0xf0上报0xff命令相应0x91 cmd1 0x92 cmd2
    /// </summary>
    public class TokenResult
    {
        /// <summary>
        /// 
        /// </summary>
        public string accessToken { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string tokenType { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string refreshToken { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int expiresIn { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string scope { get; set; }
    }
    
    public class CommandPara
    {
        public string paraName { get; set; }
        public string paraValue { get; set; }
        public bool isNum { get; set; }
    }
    public class Command
    {
        /// <summary>
        /// 
        /// </summary>
        public string serviceId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string method { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string paras { get; set; }
    }

    public class SendCommandRequest
    {
        /// <summary>
        /// 
        /// </summary>
        public string deviceId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Command command { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string callbackUrl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int expireTime { get; set; }
    }
}
