using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Domain.IoTRemoteControlEntity
{
    public class Request
    {
        /// <summary>
        /// 客控厂商提供给每个酒店的账号ID
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 房间号
        /// </summary>
        public string roomNum { get; set; }
        /// <summary>
        /// 遥控器名称标示
        /// </summary>
        public string command { get; set; }
        /// <summary>
        /// 传递词条
        /// </summary>
        public string mode { get; set; }
        /// <summary>
        /// 时间戳，秒
        /// </summary>
        public long timestamp { get; set; }
        /// <summary>
        /// (userId+roomNum+ timestamp)的md5值
        /// </summary>
        public string sign { get; set; }
    }
    /// <summary>
    /// 统⼀错误
    /// </summary>
    public class Error
    {
        /// <summary>
        /// 0成功，-1失败
        /// </summary>
        public int code { get; set; }
        /// <summary>
        /// 失败内容
        /// </summary>
        public string msg { get; set; }        
    }
}

