using System; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Request { /// /// TOP API: taobao.rar.sql.query /// public class RarSqlQueryRequest : BaseTopRequest { /// /// 分页索引 /// public Nullable PageIndex { get; set; } /// /// 每页的行数 /// public Nullable PageSize { get; set; } /// /// SQL状态。0:无效,1:有效 /// public Nullable Status { get; set; } #region ITopRequest Members public override string GetApiName() { return "taobao.rar.sql.query"; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); 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 } }