Exemple #1
0
        public Task <SoundCloudList <Connection> > GetConnectionsAsync(int limit = SoundCloudQueryBuilder.MaxLimit)
        {
            var builder = new MeQueryBuilder {
                Path = MeConnectionsPath, Paged = true, Limit = limit
            };

            return(GetPage <Connection>(builder.BuildUri()));
        }
Exemple #2
0
        public Task <SoundCloudList <User> > GetFollowersAsync(int limit = SoundCloudQueryBuilder.MaxLimit)
        {
            var builder = new MeQueryBuilder {
                Path = MeFollowersPath, Paged = true, Limit = limit
            };

            return(GetPage <User>(builder.BuildUri()));
        }
Exemple #3
0
        public Task <SoundCloudList <Track> > GetFavoritesAsync(int limit = SoundCloudQueryBuilder.MaxLimit)
        {
            var builder = new MeQueryBuilder {
                Path = MeFavoritesPath, Paged = true, Limit = limit
            };

            return(GetPage <Track>(builder.BuildUri()));
        }
Exemple #4
0
        public async Task <User> GetAsync()
        {
            var builder = new MeQueryBuilder {
                Path = MePath
            };

            return(await Gateway.SendGetRequestAsync <User>(builder.BuildUri()));
        }
Exemple #5
0
        public Task <SoundCloudList <Playlist> > GetPlaylistsAsync(int limit = SoundCloudQueryBuilder.MaxLimit)
        {
            var builder = new MeQueryBuilder {
                Path = MePlaylistsPath, Paged = true, Limit = limit
            };

            return(GetPage <Playlist>(builder.BuildUri()));
        }
Exemple #6
0
        public Task <SoundCloudList <WebProfile> > GetWebProfilesAsync(int limit = SoundCloudQueryBuilder.MaxLimit)
        {
            var builder = new MeQueryBuilder {
                Path = MeWebProfilesPath, Paged = true, Limit = limit
            };

            return(GetPage <WebProfile>(builder.BuildUri()));
        }
Exemple #7
0
        public Task <SoundCloudList <Activity> > GetActivitiesAsync(int limit = SoundCloudQueryBuilder.MaxLimit)
        {
            var builder = new MeQueryBuilder {
                Path = MeActivitiesPath, Paged = true, Limit = limit
            };

            return(GetPage <Activity>(builder.BuildUri()));
        }
Exemple #8
0
        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()));
        }
Exemple #9
0
        public async Task <WebProfile> PostWebProfileAsync(WebProfile profile)
        {
            profile.ValidatePost();

            var builder = new MeQueryBuilder {
                Path = MeWebProfilesPath
            };

            return(await Gateway.SendPostRequestAsync <WebProfile>(builder.BuildUri(), profile));
        }
Exemple #10
0
        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()));
        }
Exemple #11
0
        public User Get()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path = MePath;

            return(GetById <User>(builder.BuildUri()));
        }
Exemple #12
0
        public async Task <User> GetAsync()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path = MePath;

            return(await GetByIdAsync <User>(builder.BuildUri()));
        }
Exemple #13
0
        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()));
        }
Exemple #14
0
        public IEnumerable <Playlist> GetPlaylists()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MePlaylistsPath;
            builder.Paged = true;

            return(GetList <Playlist>(builder.BuildUri()));
        }
Exemple #15
0
        public IWebResult DeleteWebProfile(WebProfile profile)
        {
            EnsureToken();
            Validate(profile.ValidateDelete);

            var builder = new MeQueryBuilder();

            builder.Path = string.Format(MeWebProfilePath, profile.id);

            return(Delete(builder.BuildUri()));
        }
Exemple #16
0
        public async Task <IEnumerable <Track> > GetTracksAsync()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MeTracksPath;
            builder.Paged = true;

            return(await GetListAsync <Track>(builder.BuildUri()));
        }
Exemple #17
0
        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()));
        }
Exemple #18
0
        public IEnumerable <Track> GetTracks()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MeTracksPath;
            builder.Paged = true;

            return(GetList <Track>(builder.BuildUri()));
        }
Exemple #19
0
        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()));
        }
Exemple #20
0
        public IWebResult Unlike(Track track)
        {
            EnsureToken();
            Validate(track.ValidateLikeUnlike);

            var builder = new MeQueryBuilder();

            builder.Path = string.Format(MeFavoritPath, track.id);

            return(Delete(builder.BuildUri()));
        }
Exemple #21
0
        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));
        }
Exemple #22
0
        public IWebResult <WebProfile> PostWebProfile(WebProfile profile)
        {
            EnsureToken();
            Validate(profile.ValidatePost);

            var builder = new MeQueryBuilder();

            builder.Path = MeWebProfilesPath;

            return(Create <WebProfile>(builder.BuildUri(), profile));
        }
Exemple #23
0
        public async Task <IEnumerable <WebProfile> > GetWebProfilesAsync()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MeWebProfilesPath;
            builder.Paged = true;

            return(await GetListAsync <WebProfile>(builder.BuildUri()));
        }
Exemple #24
0
        public IEnumerable <WebProfile> GetWebProfiles()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MeWebProfilesPath;
            builder.Paged = true;

            return(GetList <WebProfile>(builder.BuildUri()));
        }
Exemple #25
0
        public async Task <IEnumerable <User> > GetFollowingsAsync()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MeFollowingsPath;
            builder.Paged = true;

            return(await GetListAsync <User>(builder.BuildUri()));
        }
Exemple #26
0
        public async Task <IEnumerable <Playlist> > GetPlaylistsAsync()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MePlaylistsPath;
            builder.Paged = true;

            return(await GetListAsync <Playlist>(builder.BuildUri()));
        }
Exemple #27
0
        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()));
        }
Exemple #28
0
        public IEnumerable <Group> GetGroups()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MeGroupsPath;
            builder.Paged = true;

            return(GetList <Group>(builder.BuildUri()));
        }
Exemple #29
0
        public IWebResult Follow(User user)
        {
            EnsureToken();
            Validate(user.ValidateFollowUnfollow);

            var builder = new MeQueryBuilder();

            builder.Path = string.Format(MeFollowPath, user.id);

            return(Update(builder.BuildUri()));
        }
Exemple #30
0
        public IEnumerable <User> GetFollowings()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path  = MeFollowingsPath;
            builder.Paged = true;

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