using System; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Request { /// /// TOP API: taobao.tmc.groups.get /// public class TmcGroupsGetRequest : BaseTopRequest { /// /// 要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。 /// public string GroupNames { get; set; } /// /// 页码 /// public Nullable PageNo { get; set; } /// /// 每页返回多少个分组 /// public Nullable PageSize { get; set; } #region ITopRequest Members public override string GetApiName() { return "taobao.tmc.groups.get"; } public override IDictionary 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 } }