コード例 #1
0
ファイル: BekkerService.cs プロジェクト: LangdalP/BekkSjakk
        public async Task <List <Bekker> > HentAlleBekkereAsync()
        {
            var bekkerDataObjects = await DataHelpers.HentObjekter <BekkerDataObject>(PlayersEndpoint);

            return(bekkerDataObjects.Select(x => new Bekker(x)).ToList());
        }
コード例 #2
0
        public async Task <List <SjakkParti> > HentAllePartiAsync()
        {
            var partiDataObjects = await DataHelpers.HentObjekter <SjakkPartiDataObject>(GamesEndpoint);

            return(partiDataObjects.Select(p => new SjakkParti(p)).ToList());
        }