NewGaoKaoApi/PaymentSDK/AliPay/Domain/CalendarScheduleInfo.cs

33 lines
1.0 KiB
C#
Raw 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;
using System.Collections.Generic;
namespace Aop.Api.Domain
{
/// <summary>
/// CalendarScheduleInfo Data Structure.
/// </summary>
[Serializable]
public class CalendarScheduleInfo : AopObject
{
/// <summary>
/// 时间分段时长字段unit为单位如duration=30unit=MIN则表示二进制的时间表表示将一天分为30分钟一小段的时间片段用来表示服务者的时间是否可用
/// </summary>
[XmlElement("duration")]
public long Duration { get; set; }
/// <summary>
/// 服务者的服务时间表
/// </summary>
[XmlArray("schedule")]
[XmlArrayItem("schedule_info")]
public List<ScheduleInfo> Schedule { get; set; }
/// <summary>
/// 间隔长度单位默认为MIN分钟允许的单位有DAY、WEEK、MONTH(月)
/// </summary>
[XmlElement("unit")]
public string Unit { get; set; }
}
}