using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api.Util;
using Top.Api;
using Top.Api.DingTalk;
namespace DingTalk.Api.Request
{
///
/// TOP API: dingtalk.oapi.rhino.mos.exec.operation.condition.get
///
public class OapiRhinoMosExecOperationConditionGetRequest : BaseDingTalkRequest
{
///
/// 请求
///
public string GetClothesConditionReq { get; set; }
public GetClothesConditionReqDomain GetClothesConditionReq_ { set { this.GetClothesConditionReq = TopUtils.ObjectToJson(value); } }
#region IDingTalkRequest Members
public override string GetApiName()
{
return "dingtalk.oapi.rhino.mos.exec.operation.condition.get";
}
public override string GetApiCallType()
{
return DingTalkConstants.CALL_TYPE_OAPI;
}
public override IDictionary GetParameters()
{
TopDictionary parameters = new TopDictionary();
parameters.Add("get_clothes_condition_req", this.GetClothesConditionReq);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
RequestValidator.ValidateRequired("get_clothes_condition_req", this.GetClothesConditionReq);
}
///
/// SourceDomain Data Structure.
///
[Serializable]
public class SourceDomain : TopObject
{
///
/// source_id
///
[XmlElement("source_id")]
public string SourceId { get; set; }
///
/// source_type
///
[XmlElement("source_type")]
public string SourceType { get; set; }
}
///
/// EntityConditionDomain Data Structure.
///
[Serializable]
public class EntityConditionDomain : TopObject
{
///
/// 实体id
///
[XmlArray("entity_ids")]
[XmlArrayItem("number")]
public List EntityIds { get; set; }
///
/// 实体源
///
[XmlElement("entity_source")]
public SourceDomain EntitySource { get; set; }
///
/// 实体类型
///
[XmlElement("entity_type")]
public string EntityType { get; set; }
}
///
/// PageDomain Data Structure.
///
[Serializable]
public class PageDomain : TopObject
{
///
/// 页大小
///
[XmlElement("page_size")]
public Nullable PageSize { get; set; }
///
/// 开始
///
[XmlElement("start")]
public Nullable Start { get; set; }
}
///
/// GetClothesConditionReqDomain Data Structure.
///
[Serializable]
public class GetClothesConditionReqDomain : TopObject
{
///
/// 实体条件
///
[XmlElement("condition")]
public EntityConditionDomain Condition { get; set; }
///
/// 租户
///
[XmlElement("order_id")]
public Nullable OrderId { get; set; }
///
/// 页信息
///
[XmlElement("page")]
public PageDomain Page { get; set; }
///
/// 尺码
///
[XmlArray("size_codes")]
[XmlArrayItem("string")]
public List SizeCodes { get; set; }
///
/// 状态
///
[XmlArray("status")]
[XmlArrayItem("string")]
public List Status { get; set; }
///
/// 租户id
///
[XmlElement("tenant_id")]
public string TenantId { get; set; }
///
/// user_id
///
[XmlElement("userid")]
public string Userid { get; set; }
}
#endregion
}
}