NewGaoKaoApi/PaymentSDK/AliPay/Domain/AlipayCommerceIotSdarttoolM...

85 lines
2.8 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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