Exemplo n.º 1
0
        public void SerialGuildGroupInfo(string msg)
        {
            XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupInfo msg" + msg, null, null, null, null, null, XDebugColor.XDebug_None);

            this.wxGroupInfo = XSingleton <PUtil> .singleton.Deserialize <WXGroupInfo>(msg);

            if (this.wxGroupInfo == null)
            {
                XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupInfo wxGroupInfo == null", null, null, null, null, null, XDebugColor.XDebug_None);

                return;
            }
            IGuildGroup @interface = XSingleton <XInterfaceMgr> .singleton.GetInterface <IGuildGroup>(XSingleton <XCommon> .singleton.XHash("IGuildGroup"));

            if (@interface == null)
            {
                XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupInfo entrance == null", null, null, null, null, null, XDebugColor.XDebug_None);

                return;
            }
            @interface.RefreshWXGroupBtn();
        }
Exemplo n.º 2
0
        public void SerialGuildGroupShare(string msg)
        {
            XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupShare msg" + msg, null, null, null, null, null, XDebugColor.XDebug_None);

            Dictionary <string, object> dictionary = Json.Deserialize(msg) as Dictionary <string, object>;

            if (dictionary == null)
            {
                XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupShare dict == null", null, null, null, null, null, XDebugColor.XDebug_None);

                return;
            }
            IGuildGroup @interface = XSingleton <XInterfaceMgr> .singleton.GetInterface <IGuildGroup>(XSingleton <XCommon> .singleton.XHash("IGuildGroup"));

            if (@interface == null)
            {
                XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupShare entrance == null", null, null, null, null, null, XDebugColor.XDebug_None);

                return;
            }
            object obj  = null;
            object obj2 = null;

            if (dictionary.TryGetValue("apiId", out obj) && dictionary.TryGetValue("data", out obj2))
            {
                XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupShare apiId & data", null, null, null, null, null, XDebugColor.XDebug_None);

                @interface.GuildGroupResult(obj.ToString(), obj2.ToString(), 0);
            }
            if (obj2 != null)
            {
                IUiUtility interface2 = XSingleton <XInterfaceMgr> .singleton.GetInterface <IUiUtility>(XSingleton <XCommon> .singleton.XHash("IUiUtility"));

                if (interface2 != null)
                {
                    interface2.NoticeShareResult(obj2.ToString());
                }
            }
        }
Exemplo n.º 3
0
        public void SerialGuildGroupResult(string msg)
        {
            XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupResult msg" + msg, null, null, null, null, null, XDebugColor.XDebug_None);

            WXGroupResult wXGroupResult = XSingleton <PUtil> .singleton.Deserialize <WXGroupResult>(msg);

            if (wXGroupResult == null)
            {
                XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupResult wxGroupResult == null", null, null, null, null, null, XDebugColor.XDebug_None);

                return;
            }
            IGuildGroup @interface = XSingleton <XInterfaceMgr> .singleton.GetInterface <IGuildGroup>(XSingleton <XCommon> .singleton.XHash("IGuildGroup"));

            if (@interface == null)
            {
                XSingleton <XDebug> .singleton.AddLog("[PDatabase]SerialGuildGroupResult entrance == null", null, null, null, null, null, XDebugColor.XDebug_None);

                return;
            }
            @interface.GuildGroupResult(wXGroupResult.apiId.ToString(), wXGroupResult.data.flag, wXGroupResult.data.errorCode);
        }