123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace CB.TVUCenter.View
- {
- public class ConfigInfo
- {
- /// <summary>
- /// 用户信息
- /// </summary>
- public UserInfo UserInfo { get; set; }
- /// <summary>
- /// 访问走势图密钥
- /// </summary>
- public string EncryptKey { get; set; }
- /// <summary>
- /// 是否用浏览器打开走势图,默认true。否则用自带控件打开走势图
- /// </summary>
- public bool ShowByBrowser { get; set; }
- /// <summary>
- /// 上次密钥
- /// </summary>
- //private string LastEncryptKey = "";
- /// <summary>
- /// 区域版本号
- /// </summary>
- public int AreaVersion { get; set; }
- /// <summary>
- /// 图片版本号
- /// </summary>
- public int ImgVersion { get; set; }
- public override string ToString()
- {
- var sp = new StringBuilder(5000);
- sp.AppendFormat("<EncryptKey>{0}</EncryptKey>", EncryptKey);
- sp.Append("<LastEncryptKey />");
- sp.AppendFormat("<ShowByBrowser>{0}</ShowByBrowser>", ShowByBrowser ? "1" : "0");
- if (null != UserInfo)
- sp.Append(UserInfo.ToString());
- sp.AppendFormat("<AreaVersion>{0}</AreaVersion>", AreaVersion);
- sp.AppendFormat("<ImgVersion>{0}</ImgVersion>", ImgVersion);
- return sp.ToString();
- }
- }
- }
|