using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AutoUpdater { public class OpenApi { public string Id { get; set; } public string Url { get; set; } public string Description { get; set; } public string AppSecret { get; set; } public string AppKey { get; set; } public string Locale { get; set; } public string Format { get; set; } public string Client { get; set; } public string Version { get; set; } public override int GetHashCode() { return (Id + AppSecret).GetHashCode(); } public override string ToString() { return string.Format("{0},{1}" , Id , Url); } } public class ServerUrls { /// /// 服务器Id /// public string Id { get; set; } /// /// Http或者Https /// public string Protocol { get; set; } /// /// 服务器地址,包含端口 /// public string Url { get; set; } /// /// 服务器备注说明 /// public string Memo { get; set; } } }