コード例 #1
0
        public async Task <List <Platform> > GetPlatforms()
        {
            List <Platform> platforms = new List <Platform>();
            int             offset    = 0;
            var             result    = await speedrunRefit.Platforms(offset);

            while (result.pagination.size != 0)
            {
                platforms.AddRange(result.data);
                offset += result.pagination.size;
                result  = await speedrunRefit.Platforms(offset);
            }
            return(platforms);
        }