Exemplo n.º 1
0
        public string sendPcbGamePatchToMaster(PcbGamePatch pcbGamePatch)
        {
            if (pcbGamePatch == null)
            {
                return("pcbGamePatch is null!");
            }
            if (pcbGamePatch.pcbGames.Count == 0)
            {
                return("pcbGamePatch.pcbGames is empty!");
            }

            string urlPath = PcbAgent.buildUriForApiRequest(PcbAgent.REQUEST_GAME_PATCH + getLocalIPAddress());

            Console.WriteLine("[sendPcbGamePatchToMaster] pcbGamePatch result:{0}", MsgConverter.pack <PcbGamePatch>(pcbGamePatch));

            return(HttpSender.requestJson(urlPath, MsgConverter.pack <PcbGamePatch>(pcbGamePatch)));
        }