Example #1
0
        public Task <SoundCloudList <AppClient> > GetAllAsync(int limit = SoundCloudQueryBuilder.MaxLimit)
        {
            var builder = new AppsQueryBuilder {
                Path = AppsPath, Paged = true, Limit = limit
            };

            return(GetPage <AppClient>(builder.BuildUri()));
        }
Example #2
0
        public async Task <AppClient> GetAsync(long id)
        {
            var builder = new AppsQueryBuilder {
                Path = string.Format(AppPath, id)
            };

            return(await Gateway.SendGetRequestAsync <AppClient>(builder.BuildUri()));
        }
Example #3
0
        public async Task <AppClient> GetAsync(int appId)
        {
            EnsureClientId();

            var builder = new AppsQueryBuilder();

            builder.Path = string.Format(AppPath, appId);

            return(await GetByIdAsync <AppClient>(builder.BuildUri()));
        }
Example #4
0
        public AppClient Get(int appId)
        {
            EnsureClientId();

            var builder = new AppsQueryBuilder();

            builder.Path = string.Format(AppPath, appId);

            return(GetById <AppClient>(builder.BuildUri()));
        }
Example #5
0
        public async Task <IEnumerable <AppClient> > GetAsync()
        {
            EnsureClientId();

            var builder = new AppsQueryBuilder();

            builder.Path  = AppsPath;
            builder.Paged = true;

            return(await GetListAsync <AppClient>(builder.BuildUri()));
        }
Example #6
0
        public IEnumerable <AppClient> Get()
        {
            EnsureClientId();

            var builder = new AppsQueryBuilder();

            builder.Path  = AppsPath;
            builder.Paged = true;

            return(GetList <AppClient>(builder.BuildUri()));
        }