public Task <SoundCloudList <Connection> > GetConnectionsAsync(int limit = SoundCloudQueryBuilder.MaxLimit) { var builder = new MeQueryBuilder { Path = MeConnectionsPath, Paged = true, Limit = limit }; return(GetPage <Connection>(builder.BuildUri())); }
public Task <SoundCloudList <User> > GetFollowersAsync(int limit = SoundCloudQueryBuilder.MaxLimit) { var builder = new MeQueryBuilder { Path = MeFollowersPath, Paged = true, Limit = limit }; return(GetPage <User>(builder.BuildUri())); }
public Task <SoundCloudList <Track> > GetFavoritesAsync(int limit = SoundCloudQueryBuilder.MaxLimit) { var builder = new MeQueryBuilder { Path = MeFavoritesPath, Paged = true, Limit = limit }; return(GetPage <Track>(builder.BuildUri())); }
public async Task <User> GetAsync() { var builder = new MeQueryBuilder { Path = MePath }; return(await Gateway.SendGetRequestAsync <User>(builder.BuildUri())); }
public Task <SoundCloudList <Playlist> > GetPlaylistsAsync(int limit = SoundCloudQueryBuilder.MaxLimit) { var builder = new MeQueryBuilder { Path = MePlaylistsPath, Paged = true, Limit = limit }; return(GetPage <Playlist>(builder.BuildUri())); }
public Task <SoundCloudList <WebProfile> > GetWebProfilesAsync(int limit = SoundCloudQueryBuilder.MaxLimit) { var builder = new MeQueryBuilder { Path = MeWebProfilesPath, Paged = true, Limit = limit }; return(GetPage <WebProfile>(builder.BuildUri())); }
public Task <SoundCloudList <Activity> > GetActivitiesAsync(int limit = SoundCloudQueryBuilder.MaxLimit) { var builder = new MeQueryBuilder { Path = MeActivitiesPath, Paged = true, Limit = limit }; return(GetPage <Activity>(builder.BuildUri())); }
public async Task <StatusResponse> DeleteWebProfileAsync(WebProfile profile) { profile.ValidateDelete(); var builder = new MeQueryBuilder { Path = string.Format(MeWebProfilePath, profile.Id) }; return(await Gateway.SendDeleteRequestAsync <StatusResponse>(builder.BuildUri())); }
public async Task <WebProfile> PostWebProfileAsync(WebProfile profile) { profile.ValidatePost(); var builder = new MeQueryBuilder { Path = MeWebProfilesPath }; return(await Gateway.SendPostRequestAsync <WebProfile>(builder.BuildUri(), profile)); }
public async Task <StatusResponse> UnlikeAsync(Track track) { track.ValidateLikeUnlike(); var builder = new MeQueryBuilder { Path = string.Format(MeFavoritePath, track.Id) }; return(await Gateway.SendDeleteRequestAsync <StatusResponse>(builder.BuildUri())); }
public User Get() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MePath; return(GetById <User>(builder.BuildUri())); }
public async Task <User> GetAsync() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MePath; return(await GetByIdAsync <User>(builder.BuildUri())); }
public async Task <StatusResponse> FollowAsync(User user) { user.ValidateFollowUnfollow(); var builder = new MeQueryBuilder { Path = string.Format(MeFollowPath, user.Id) }; return(await Gateway.SendPutRequestAsync <StatusResponse>(builder.BuildUri())); }
public IEnumerable <Playlist> GetPlaylists() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MePlaylistsPath; builder.Paged = true; return(GetList <Playlist>(builder.BuildUri())); }
public IWebResult DeleteWebProfile(WebProfile profile) { EnsureToken(); Validate(profile.ValidateDelete); var builder = new MeQueryBuilder(); builder.Path = string.Format(MeWebProfilePath, profile.id); return(Delete(builder.BuildUri())); }
public async Task <IEnumerable <Track> > GetTracksAsync() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MeTracksPath; builder.Paged = true; return(await GetListAsync <Track>(builder.BuildUri())); }
public async Task <IWebResult> FollowAsync(User user) { EnsureToken(); Validate(user.ValidateFollowUnfollow); var builder = new MeQueryBuilder(); builder.Path = string.Format(MeFollowPath, user.id); return(await UpdateAsync(builder.BuildUri())); }
public IEnumerable <Track> GetTracks() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MeTracksPath; builder.Paged = true; return(GetList <Track>(builder.BuildUri())); }
public async Task <IWebResult> DeleteWebProfileAsync(WebProfile profile) { EnsureToken(); Validate(profile.ValidateDelete); var builder = new MeQueryBuilder(); builder.Path = string.Format(MeWebProfilePath, profile.id); return(await DeleteAsync(builder.BuildUri())); }
public IWebResult Unlike(Track track) { EnsureToken(); Validate(track.ValidateLikeUnlike); var builder = new MeQueryBuilder(); builder.Path = string.Format(MeFavoritPath, track.id); return(Delete(builder.BuildUri())); }
public async Task <IWebResult <WebProfile> > PostWebProfileAsync(WebProfile profile) { EnsureToken(); Validate(profile.ValidatePost); var builder = new MeQueryBuilder(); builder.Path = MeWebProfilesPath; return(await CreateAsync <WebProfile>(builder.BuildUri(), profile)); }
public IWebResult <WebProfile> PostWebProfile(WebProfile profile) { EnsureToken(); Validate(profile.ValidatePost); var builder = new MeQueryBuilder(); builder.Path = MeWebProfilesPath; return(Create <WebProfile>(builder.BuildUri(), profile)); }
public async Task <IEnumerable <WebProfile> > GetWebProfilesAsync() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MeWebProfilesPath; builder.Paged = true; return(await GetListAsync <WebProfile>(builder.BuildUri())); }
public IEnumerable <WebProfile> GetWebProfiles() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MeWebProfilesPath; builder.Paged = true; return(GetList <WebProfile>(builder.BuildUri())); }
public async Task <IEnumerable <User> > GetFollowingsAsync() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MeFollowingsPath; builder.Paged = true; return(await GetListAsync <User>(builder.BuildUri())); }
public async Task <IEnumerable <Playlist> > GetPlaylistsAsync() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MePlaylistsPath; builder.Paged = true; return(await GetListAsync <Playlist>(builder.BuildUri())); }
public async Task <IWebResult> UnlikeAsync(Track track) { EnsureToken(); Validate(track.ValidateLikeUnlike); var builder = new MeQueryBuilder(); builder.Path = string.Format(MeFavoritPath, track.id); return(await DeleteAsync(builder.BuildUri())); }
public IEnumerable <Group> GetGroups() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MeGroupsPath; builder.Paged = true; return(GetList <Group>(builder.BuildUri())); }
public IWebResult Follow(User user) { EnsureToken(); Validate(user.ValidateFollowUnfollow); var builder = new MeQueryBuilder(); builder.Path = string.Format(MeFollowPath, user.id); return(Update(builder.BuildUri())); }
public IEnumerable <User> GetFollowings() { EnsureToken(); var builder = new MeQueryBuilder(); builder.Path = MeFollowingsPath; builder.Paged = true; return(GetList <User>(builder.BuildUri())); }