internal static void OnEnterGame(string uid, PktLoginRequest.EPartnerID ePartnerID) { var req = new PktEnterGameRequest(); req.uid = uid; req.ePartnerID = ePartnerID; AClientApp.RemoteCall <PktEnterGameResult>(req, OnEnterGameCb); }
internal override void rcvLoginCb(bool bSuccess, string uid, PktLoginRequest.EPartnerID ePartnerID) { if (bSuccess) { AClientApis.OnEnterGame(uid, ePartnerID); } AOutput.Log($"rcvLoginCb {bSuccess}, {uid}"); }
public static void OnLogin(string username, string password, PktLoginRequest.EPartnerID ePartnerID) { var req = new PktLoginRequest(); req.username = username; req.password = password; req.ePartnerID = ePartnerID; AClientApp.RemoteCall <PktLoginResult>(req, OnLoginCb); }
public string GetToken(PktLoginRequest.EPartnerID ePartnerID, string uid) { var kv = new KeyValuePair <PktLoginRequest.EPartnerID, string>(ePartnerID, uid); if (dTokens.ContainsKey(kv)) { var token = dTokens[kv]; dTokens.Remove(kv); return(token); } return(""); }
public string AddToken(PktLoginRequest.EPartnerID ePartnerID, string uid) { var kv = new KeyValuePair <PktLoginRequest.EPartnerID, string>(ePartnerID, uid); if (dTokens.ContainsKey(kv)) { dTokens.Remove(kv); } var token = Guid.NewGuid().ToString(); dTokens.Add(kv, token); return(token); }
internal virtual void rcvLoginCb(bool bSuccess, string uid, PktLoginRequest.EPartnerID ePartnerID) { AOutput.Log($"NotImplemented rcvLoginCb"); }