/// <summary> /// update the uniquenick /// </summary> /// <param name="client"></param> /// <param name="dict"></param> public static void RegisterNick(GPCMClient client, Dictionary <string, string> dict) { GPErrorCode error = IsContainAllKeys(dict); if (error != GPErrorCode.NoError) { GameSpyUtils.SendGPError(client, error, "Parsing error"); return; } string sendingBuffer; try { RegisterNickQuery.UpdateUniquenick(dict); sendingBuffer = @"\rn\final\"; client.Send(sendingBuffer); } catch (Exception e) { LogWriter.Log.WriteException(e); } }
/// <summary> /// update the uniquenick /// </summary> /// <param name="session"></param> /// <param name="dict"></param> public static void RegisterNick(GPCMSession session, Dictionary <string, string> dict) { GPErrorCode error = IsContainAllKeys(dict); if (error != GPErrorCode.NoError) { GameSpyUtils.SendGPError(session, error, "Parsing error"); return; } string sendingBuffer; try { RegisterNickQuery.UpdateUniquenick(dict["uniquenick"], session.PlayerInfo.SessionKey, Convert.ToUInt16(dict["patnerid"])); sendingBuffer = @"\rn\final\"; session.Send(sendingBuffer); } catch (Exception e) { LogWriter.Log.WriteException(e); } }