using System; using System.Collections.Generic; using Top.Api.Util; namespace Top.Api.Security { public class TopSecretGetRequest : BaseTopRequest { /// /// 伪随机码 /// public string RandomNum { get; set; } /// /// 秘钥版本 /// public Nullable SecretVersion { get; set; } /// /// 自主账号id /// public Nullable CustomerUserId { get; set; } public override string GetApiName() { return "taobao.top.secret.get"; } public override void Validate() { RequestValidator.ValidateRequired("RandomNum", RandomNum); } public override IDictionary GetParameters() { TopDictionary parameters = new TopDictionary(); parameters.Add("random_num", this.RandomNum); parameters.Add("secret_version", this.SecretVersion); parameters.Add("customer_user_id", this.CustomerUserId); if (this.otherParams != null) { parameters.AddAll(otherParams); } return parameters; } } }