コード例 #1
0
        protected override Genre LoadElement(string id, GetGenreRequest options)
        {
            options.Id = id;
            var oneResponse = _restClient.Get(options);

            return(GenreDto.fromJson(oneResponse));
        }
コード例 #2
0
        protected override System.Collections.Generic.List <Genre> LoadElements(int limit, GetGenreRequest options)
        {
            if (limit > 0 && options.Limit <= 0)
            {
                options.Limit = limit;
            }
            options.Depth = 1;
            var oneResponse = _restClient.Get(options);

            List <Genre> result = new List <Genre>();

            // foreach oneResponse ..
            result.Add(GenreDto.fromJson(oneResponse));
            return(result);
        }