123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- using System;
- using WingServerCommon.Log;
- using WingServerCommon.Interfaces.OpLog;
- namespace WingServerCommon.Interfaces.Cache
- {
- public interface ITokensManager : IBaseCacheManager<Token>
- {
- }
- public class TokensManager : CacheManager<Token>, ITokensManager
- {
- public TokensManager() : base()
- {
- }
- }
-
-
-
- public class Token : ICacheObject
- {
- public Token()
- {
- }
-
-
-
-
- public int Version { get; set; }
-
-
-
-
- public string Code { get; set; }
-
-
-
-
- public int AccountType { get; set; }
-
-
-
-
- public string AccountName { get; set; } = string.Empty;
-
-
-
-
- public int Platform { get; set; }
-
-
-
-
- public int LoginSource { get; set; }
-
-
-
-
- public string ClientId { get; set; }
-
-
-
-
- public string LoginServer { get; set; }
-
-
-
-
- public DateTime CreateTime { get; set; }
-
-
-
-
- public DateTime Expiration { get; set; }
-
-
-
-
- public long IpValue { get; set; }
-
-
-
-
- public bool IsOnline { get; set; }
-
-
-
-
- public string InstallVersion { get; set; }
-
-
-
-
- public bool IsOldPlatform { get; set; }
-
-
-
-
- public int ProxyType { get; set; }
- public override string ToString()
- {
- return $"Token:{Code}|AccountType:{AccountType}|AccountName:{AccountName}|Platform:{Platform}|LoginSource:{LoginSource}|ClientId:{ClientId}|LoginServer:{LoginServer}|InstallVersion:{InstallVersion}|IsOldPlatform:{IsOldPlatform}|ProxyType:{ProxyType}";
- }
- }
- }
|