Example #1
0
        public void PostGameDataResult(PostGameDataResponse result)
        {
            getPostGameDataService.servicePostGameDataBackSignal.RemoveListener(PostGameDataResult);
            getPostGameDataService.servicePostGameDataErrBackSignal.RemoveListener(PostGameDataResultErr);

            mediatorPostGameDataSignal.Dispatch(result);
            Release();
        }
        public void PostGameData(string paras)
        {
            string prod_name = AppData.GetAppName();

            string x_child_sn = mLocalChildInfoAgent.getChildSN();

            if (x_child_sn == string.Empty)
            {
                return;
            }

            string x_cup_sn = CupBuild.getCupSn();

            GuLog.Info("PostGameData:" + paras);
            mNativeOkHttpMethodWrapper.post(mUrlProvider.GameDataUrl(x_child_sn, prod_name, x_cup_sn), "", paras, (r) => {
                PostGameDataResponse info = mJsonUtils.String2Json <PostGameDataResponse>(r);

                modelPostGameData.responsePostGameData = info;

                servicePostGameDataBackSignal.Dispatch(modelPostGameData.responsePostGameData);
            }, (e) => {
                servicePostGameDataErrBackSignal.Dispatch(e);
            });
        }