internal void PutUserRecipe(UserRecipe userRecipe, string code = null) { _apiGate = "GetUserRecipes"; _uri = String.Format(ApiPath + ApiStage + _apiGate + "?id={0}", userRecipe.Id.ToString()); ApiRequest ap = new ApiRequest { Action = "Insert", UserRecipe = userRecipe }; if (code != null) { ap.Action = "Update"; ap.Code = code; } Debug.Log(ap.Action + " UserRecipe : " + userRecipe.MyInfo()); StartCoroutine(PutRequest(_uri, ap, true)); }
internal string MyInfo() { string info = "Action =" + Action + " HealthCheck=" + HealthCheck; if (UserPlayer.Id != 0) { info += " UserPlayer=" + UserPlayer.MyInfo(); } if (CharacterSetting.Id != 0) { info += " CharacterSetting=" + CharacterSetting.MyInfo(); } if (CharacterMixture.Id != 0) { info += " CharacterMixture=" + CharacterMixture.MyInfo(); } if (CharacterResearching.Id != 0) { info += " CharacterResearching=" + CharacterResearching.MyInfo(); } if (CharacterResearch.Id != 0) { info += " CharacterResearch=" + CharacterResearch.MyInfo(); } if (UserRecipe.Id != 0) { info += " UserRecipe=" + UserRecipe.MyInfo(); } if (UserInventory.Id != 0) { info += " UserInventory=" + UserInventory.MyInfo(); } if (MailMessage.Id != 0) { info += " MailMessage=" + MailMessage.MyInfo(); } return(info); }