public void TestUpdate() { BotData botData = myBotData; Debug.Log(botData.botName); stillWaiting = true; if (!botData) { Debug.LogError("[SendBotToCLoud] Suddenly botdata went missing"); return; } var nb = new NewBot(); nb.InitFromData(botData); UpdateBotRequest req = new UpdateBotRequest(1, nb); if (req != null) { Debug.Log("[SendActiveBot] req is not null <b>:></b>"); GameSync.instance.SendData(req, "Update Bot In Cloud"); } else { Debug.LogWarning("req is null <b>:></b>"); } }
public async Task <BotResponse> UpdateBot(int BotId, UpdateBotRequest request, string accessToken = null) { var url = ClientSettings.Origin + BotsEndpoint + $"/{BotId}"; Token = accessToken ?? Token; var response = await this.RunQuery <BotResponse>(() => RequestHelper.PutRequest(this, url, request, Token)); return(response); }
public UpdateBotRequestBuilder(int botId) { _request = new UpdateBotRequest(); BotId = botId; }