public static List <GameListResource> GetStagedGames() { string reply; const string urlSuffix = GAME_SUFFIX + "/staged"; var code = Get(urlSuffix, out reply); HandleReturnCode(code); if (code == 204) { //HTTP code for "No Content" return(new List <GameListResource>(0)); } Debug.Log(reply); return(JsonArrayHelper.getJsonList <GameListResource>(reply)); }
private void LoadColors() { string response = Rest.GetColors(); Debug.Log(response); List <CustomColor> customColors = JsonArrayHelper.getJsonList <CustomColor>(response); if (ColorNames == null || ColorNames.Count > 0) { ColorNames = new Dictionary <string, string>(); } foreach (var customColor in customColors) { ColorNames.Add(customColor.color, customColor.name); } }