using System; using System.Reflection; using KKSG; using XMainClient.UI; using XUtliPoolLib; namespace XMainClient { internal class Process_RpcC2G_CampDuelActivityOperation { public static void OnReply(CampDuelActivityOperationArg oArg, CampDuelActivityOperationRes oRes) { bool flag = oRes.errorcode == ErrorCode.ERR_INVALID_REQUEST; if (flag) { string fullName = MethodBase.GetCurrentMethod().ReflectedType.FullName; XSingleton.singleton.OnGetInvalidRequest(fullName); } else { bool flag2 = oRes.errorcode > ErrorCode.ERR_SUCCESS; if (flag2) { XSingleton.singleton.ShowSystemTip(oRes.errorcode, "fece00"); } else { XCampDuelDocument.Doc.SetCampDuelData(oArg, oRes); bool flag3 = oArg.type == 2u && XCampDuelDocument.Doc.handler != null; if (flag3) { XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_JOIN_OK"), XCampDuelDocument.Doc.handler.CampName), "fece00"); } bool flag4 = oArg.type == 3u; if (flag4) { XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_CONFIRM_OK"), oArg.arg), "fece00"); } bool flag5 = oArg.type == 4u || oArg.type == 5u; if (flag5) { XSingleton.singleton.ShowSystemTip(string.Format(XStringDefineProxy.GetString("CAMPDUEL_COURAGE_OK"), oArg.arg), "fece00"); } } } } public static void OnTimeout(CampDuelActivityOperationArg oArg) { } } }