using System; using System.Xml.Serialization; namespace Aop.Api.Domain { /// /// AlipayCommerceIotSdarttoolMessageSendModel Data Structure. /// [Serializable] public class AlipayCommerceIotSdarttoolMessageSendModel : AopObject { /// /// 消息是否必达(immediate_msg为false时此字段设置有效),消息过期时间顺延3*24h. 建议使用expire_time设置消息过期时间 /// [XmlElement("bi_da")] public bool BiDa { get; set; } /// /// 设备查询条件类型 ;SUPPLIERID_SN:supplierid+sn ; ITEMID_SN:itemid + sn; SN:sn /// [XmlElement("device_query_type")] public string DeviceQueryType { get; set; } /// /// 是否即时消息; true-校验设备是否在线,false-不校验设备是否在线 /// [XmlElement("immediate_msg")] public bool ImmediateMsg { get; set; } /// /// 产品ID /// [XmlElement("item_id")] public string ItemId { get; set; } /// /// 消息内容(xpaas_common:{"contentParams":["消息内容"]};audio_msg:{"contentParams":["语音内容"]};cloud_print:{"contentParams":["打印内容"],"target":"打印编号-可选默认第一个","instructionFormat":"template或cmd"}) /// [XmlElement("msg_content")] public string MsgContent { get; set; } /// /// 消息内容格式 /// [XmlElement("msg_content_type")] public string MsgContentType { get; set; } /// /// 消息过期时间戳(ms), 默认为当前时间顺延24h有效。当设备在线时消息服务过期之前尝试推送。最大过期时间顺延3*24h /// [XmlElement("msg_expire")] public long MsgExpire { get; set; } /// /// 消息优先级(immediate_msg为false此字段设置有效)数字越大优先发送。 /// [XmlElement("msg_priority")] public long MsgPriority { get; set; } /// /// 消息类型:xpaas_common-小程序通用消息 /// [XmlElement("msg_type")] public string MsgType { get; set; } /// /// 服务ID,当小程序消费消息时必传(传入的是小程序ID) /// [XmlElement("service_id")] public string ServiceId { get; set; } /// /// 设备sn号 /// [XmlElement("sn")] public string Sn { get; set; } /// /// 厂商ID /// [XmlElement("supplier_id")] public string SupplierId { get; set; } } }