using System.Runtime.Serialization; namespace StreamBox.Lib.Server.Linkage { [DataContract] public class LinkSite { [DataMember(Name = "siteApiKey")] public string SiteApiKey { get; set; } [IgnoreDataMember] public string SiteToken { get; set; } [IgnoreDataMember] public bool AllowRetry { get; set; } [IgnoreDataMember] public string ReportTranId { get; set; } public LinkSite(string siteToken, bool allowRetry) { SiteToken = siteToken; AllowRetry = allowRetry; } // fo redis public LinkSite() { } public override string ToString() { return $"{SiteToken}"; } } }