Beispiel #1
0
        public List <Pickup> GetAllPickups()
        {
            List <Pickup> pickups = RESTUtil.GetFromURL <List <Pickup> >(PICKUPS_PATH);

            if (pickups == null)
            {
                pickups = new List <Pickup>();
            }
            return(pickups);
        }
Beispiel #2
0
        public List <Run> GetAllRuns()
        {
            List <Run> runs = RESTUtil.GetFromURL <List <Run> >(RUNS_PATH);

            if (runs == null)
            {
                runs = new List <Run>();
            }
            return(runs);
        }
Beispiel #3
0
        public List <EndGameSession> GetAllEndGameSessions()
        {
            List <EndGameSession> endGames = RESTUtil.GetFromURL <List <EndGameSession> >(ENDGAMESESSION_PATH);

            if (endGames == null)
            {
                endGames = new List <EndGameSession>();
            }
            return(endGames);
        }
Beispiel #4
0
        public Run GetRunById(int id)
        {
            Run run = RESTUtil.GetFromURL <Run>(RUNS_PATH + "/" + id);

            if (run == null)
            {
                run = new Run()
                {
                    RunId = -1
                }
            }
            ;
            return(run);
        }
    }