public IEnumerator GetTournamentList()
    {
        GetTournamentListRequest request = new GetTournamentListRequest
        {
            limit            = "10",
            playerAttributes = "",
            period           = "ALL",
            filterBy         = "LIVE"
        };

        yield return(gameOnApi.GetTournamentList(
                         request,
                         response =>
        {
            // clear existing tournaments
            tournaments.Clear();

            DebugOutput("Tournament Get Success: Found " + response.tournaments.Count + " tournament(s)");
            tournaments.AddRange(response.tournaments);
        },
                         error =>
        {
            DebugOutput("Tournament Get Error: " + error);
        }
                         ));
    }
 public IEnumerator GetTournamentList(GetTournamentListRequest request,
                                      Action <GetTournamentListResponse> onTournamentListResponse,
                                      Action <string> onError)
 {
     yield return(SyncGet(
                      request,
                      responseText =>
     {
         if (!string.IsNullOrEmpty(responseText))
         {
             onTournamentListResponse(GetTournamentListResponse.FromJSON(responseText));
         }
         else
         {
             onTournamentListResponse(new GetTournamentListResponse()
             {
                 tournaments = new List <Tournament>()
             });
         }
     },
                      onError
                      ));
 }