| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System;
- using System.Collections.Generic;
- using Top.Api.Util;
- namespace Top.Api.Request
- {
- /// <summary>
- /// TOP API: taobao.tmc.groups.get
- /// </summary>
- public class TmcGroupsGetRequest : BaseTopRequest<Top.Api.Response.TmcGroupsGetResponse>
- {
- /// <summary>
- /// 要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。
- /// </summary>
- public string GroupNames { get; set; }
- /// <summary>
- /// 页码
- /// </summary>
- public Nullable<long> PageNo { get; set; }
- /// <summary>
- /// 每页返回多少个分组
- /// </summary>
- public Nullable<long> PageSize { get; set; }
- #region ITopRequest Members
- public override string GetApiName()
- {
- return "taobao.tmc.groups.get";
- }
- public override IDictionary<string, string> GetParameters()
- {
- TopDictionary parameters = new TopDictionary();
- parameters.Add("group_names", this.GroupNames);
- parameters.Add("page_no", this.PageNo);
- parameters.Add("page_size", this.PageSize);
- if (this.otherParams != null)
- {
- parameters.AddAll(this.otherParams);
- }
- return parameters;
- }
- public override void Validate()
- {
- RequestValidator.ValidateMaxListSize("group_names", this.GroupNames, 20);
- }
- #endregion
- }
- }
|