using System;
using System.Xml.Serialization;
using System.Collections.Generic;
using Top.Api.Util;
namespace Top.Api.Request
{
///
/// TOP API: taobao.add.update.apidefine
///
public class AddUpdateApidefineRequest : BaseTopRequest
{
///
/// 定义文件do
///
public string ApiDefineDo { get; set; }
public ApiDefineDODomain ApiDefineDo_ { set { this.ApiDefineDo = TopUtils.ObjectToJson(value); } }
#region ITopRequest Members
public override string GetApiName()
{
return "taobao.add.update.apidefine";
}
public override IDictionary GetParameters()
{
TopDictionary parameters = new TopDictionary();
parameters.Add("api_define_do", this.ApiDefineDo);
if (this.otherParams != null)
{
parameters.AddAll(this.otherParams);
}
return parameters;
}
public override void Validate()
{
}
///
/// ApiDefineDODomain Data Structure.
///
[Serializable]
public class ApiDefineDODomain : TopObject
{
///
/// api定义文件
///
[XmlElement("api_define_informal")]
public string ApiDefineInformal { get; set; }
///
/// api id
///
[XmlElement("api_id")]
public Nullable ApiId { get; set; }
///
/// api定义文件
///
[XmlElement("api_mapping_informal")]
public string ApiMappingInformal { get; set; }
///
/// 是否为新的API
///
[XmlElement("new_api")]
public Nullable NewApi { get; set; }
///
/// 状态
///
[XmlElement("status")]
public Nullable Status { get; set; }
}
#endregion
}
}