You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
1.4 KiB

/*
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<SnsFriendInfoAccount> Friendlist;
}
public class FacebookTokenCache
{
public Dictionary<string, FacebookAccountInfo> CacheDict = new Dictionary<string, FacebookAccountInfo>();
//线程锁
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;
}
}
}