using System; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Request { /// /// TOP API: taobao.rar.auth.query /// public class RarAuthQueryRequest : BaseTopRequest { /// /// 需要查询的用户 /// public string Nick { get; set; } /// /// 分页索引 /// public Nullable PageIndex { get; set; } /// /// 每页的行数 /// public Nullable PageSize { get; set; } /// /// 授权状态。0:无效,1:有效 /// public Nullable Status { get; set; } #region ITopRequest Members public override string GetApiName() { return "taobao.rar.auth.query"; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("nick", this.Nick); parameters.Add("page_index", this.PageIndex); parameters.Add("page_size", this.PageSize); parameters.Add("status", this.Status); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { RequestValidator.ValidateRequired("page_index", this.PageIndex); RequestValidator.ValidateRequired("page_size", this.PageSize); } #endregion } }