/* Sog 游戏基础库 2016 by zouwei */ using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; using Sog; using ProtoCSStruct; namespace HttpProxy { public class FacebookAccountInfo { public int AccountType; public string AccountID; public string Token; public string Nick; public string Icon; public int Gender; public string Email; //facebook里的email public long LastHttpQueryFriendTime; public List Friendlist; } public class FacebookTokenCache { public Dictionary CacheDict = new Dictionary(); //线程锁 public object Locker = new object(); } public class HttpProxyServerData : IServerDataObj { public ServerApp m_app; public StructPacketSender m_packetSender; public FacebookTokenCache m_facebookTokenCache = new FacebookTokenCache(); public HttpProxyServerData(ServerApp app) { m_app = app; m_packetSender = new StructPacketSender(); //需要线程安全 m_packetSender.Init(app.ServerID, app.GetCluster()); } public override int GetDataType() { return HttpProxyDataObjType.HttpProxyServerData; } } }