37 lines
1.6 KiB
C#
37 lines
1.6 KiB
C#
using System;
|
||
using System.Xml.Serialization;
|
||
|
||
namespace Aop.Api.Domain
|
||
{
|
||
/// <summary>
|
||
/// AlipayCommerceIotDeviceAudioSendModel Data Structure.
|
||
/// </summary>
|
||
[Serializable]
|
||
public class AlipayCommerceIotDeviceAudioSendModel : AopObject
|
||
{
|
||
/// <summary>
|
||
/// 语音id, 也就是语音合成接口返回的audio_id
|
||
/// </summary>
|
||
[XmlElement("audio_id")]
|
||
public string AudioId { get; set; }
|
||
|
||
/// <summary>
|
||
/// 语音播报规则,当播放场景为CUSTOM_AUDIO时需传入. 参数为json字符串. start_time: 每天播报的开始时间; end_time:每天播报的结束时间; interval:播报间隔,单位为秒; status: 取值为on/off. 表示开关状态. 示例值的含义是在每天的8:00到18:00点之间,每隔300s播报一次语音; 当需要关闭自定义语音时,传入{"status":"off"}
|
||
/// </summary>
|
||
[XmlElement("audio_rule")]
|
||
public string AudioRule { get; set; }
|
||
|
||
/// <summary>
|
||
/// 设备的唯一标识,设备id
|
||
/// </summary>
|
||
[XmlElement("biz_tid")]
|
||
public string BizTid { get; set; }
|
||
|
||
/// <summary>
|
||
/// 语音播放场景. 可选值: TRADE,CUSTOM_AUDIO TRADE: 表示该语音的播放场景是到账播报场景, 通过该接口将语音推下去,当发生交易时, 再调用播报接口触发语音播报; CUSTOM_AUDIO: 自定义语音播报场景, 通过传入audio_rule参数,指定特定的播报间隔, 设备会自动按照该规则进行播报
|
||
/// </summary>
|
||
[XmlElement("play_type")]
|
||
public string PlayType { get; set; }
|
||
}
|
||
}
|