using System; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Request { /// /// TOP API: taobao.top.secret.get /// public class TopSecretGetRequest : BaseTopRequest { /// /// 自定义用户id /// public Nullable CustomerUserId { get; set; } /// /// 伪随机数 /// public string RandomNum { get; set; } /// /// 秘钥版本号 /// public Nullable SecretVersion { get; set; } #region ITopRequest Members public override string GetApiName() { return "taobao.top.secret.get"; } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("customer_user_id", this.CustomerUserId); parameters.Add("random_num", this.RandomNum); parameters.Add("secret_version", this.SecretVersion); if (this.otherParams != null) { parameters.AddAll(this.otherParams); } return parameters; } public override void Validate() { RequestValidator.ValidateRequired("random_num", this.RandomNum); } #endregion } }