public Task <SoundCloudList <AppClient> > GetAllAsync(int limit = SoundCloudQueryBuilder.MaxLimit) { var builder = new AppsQueryBuilder { Path = AppsPath, Paged = true, Limit = limit }; return(GetPage <AppClient>(builder.BuildUri())); }
public async Task <AppClient> GetAsync(long id) { var builder = new AppsQueryBuilder { Path = string.Format(AppPath, id) }; return(await Gateway.SendGetRequestAsync <AppClient>(builder.BuildUri())); }
public async Task <AppClient> GetAsync(int appId) { EnsureClientId(); var builder = new AppsQueryBuilder(); builder.Path = string.Format(AppPath, appId); return(await GetByIdAsync <AppClient>(builder.BuildUri())); }
public AppClient Get(int appId) { EnsureClientId(); var builder = new AppsQueryBuilder(); builder.Path = string.Format(AppPath, appId); return(GetById <AppClient>(builder.BuildUri())); }
public async Task <IEnumerable <AppClient> > GetAsync() { EnsureClientId(); var builder = new AppsQueryBuilder(); builder.Path = AppsPath; builder.Paged = true; return(await GetListAsync <AppClient>(builder.BuildUri())); }
public IEnumerable <AppClient> Get() { EnsureClientId(); var builder = new AppsQueryBuilder(); builder.Path = AppsPath; builder.Paged = true; return(GetList <AppClient>(builder.BuildUri())); }