using System; namespace Common.Models { public class TokenManageModel { public string UserName { get; set; } public string Password { get; set; } public string AppId { get; set; } public string ApiAccessKey { get; set; } public string TokenNo { get; set; } public string Issuer { get; set; } public string Audience { get; set; } public DateTime ExpiresTime { get; set; } public string SecrateKey { get; set; } public string tokenUser { get; set; } //public string tokenUser { // set { // _tokenUser = (!string.IsNullOrWhiteSpace(UserName) ? Regex.Replace(UserName, "\\s", "_") : UserName) + // (!string.IsNullOrWhiteSpace(Password) ? "|" + Password : "") + (!string.IsNullOrWhiteSpace(AppId) ? "|" + AppId : "") // + (!string.IsNullOrWhiteSpace(ApiAccessKey) ? "|" + ApiAccessKey : "") + (!string.IsNullOrWhiteSpace(SecrateKey) ? "|" + SecrateKey : "") // + (!string.IsNullOrWhiteSpace(Issuer) ? "|" + Issuer : "") + (!string.IsNullOrWhiteSpace(Audience) ? "|" + Audience : ""); // } // get { return _tokenUser; } //} } }