Example #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()));
        }
Example #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()));
        }
Example #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()));
        }
Example #4
0
        public async Task <User> GetAsync()
        {
            var builder = new MeQueryBuilder {
                Path = MePath
            };

            return(await Gateway.SendGetRequestAsync <User>(builder.BuildUri()));
        }
Example #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()));
        }
Example #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()));
        }
Example #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()));
        }
Example #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()));
        }
Example #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));
        }
Example #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()));
        }
Example #11
0
        public User Get()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

            builder.Path = MePath;

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

            var builder = new MeQueryBuilder();

            builder.Path = MePath;

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

            var builder = new MeQueryBuilder();

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

            return(GetList <Playlist>(builder.BuildUri()));
        }
Example #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()));
        }
Example #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()));
        }
Example #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()));
        }
Example #18
0
        public IEnumerable <Track> GetTracks()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

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

            return(GetList <Track>(builder.BuildUri()));
        }
Example #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()));
        }
Example #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()));
        }
Example #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));
        }
Example #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));
        }
Example #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()));
        }
Example #24
0
        public IEnumerable <WebProfile> GetWebProfiles()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

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

            return(GetList <WebProfile>(builder.BuildUri()));
        }
Example #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()));
        }
Example #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()));
        }
Example #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()));
        }
Example #28
0
        public IEnumerable <Group> GetGroups()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

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

            return(GetList <Group>(builder.BuildUri()));
        }
Example #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()));
        }
Example #30
0
        public IEnumerable <User> GetFollowings()
        {
            EnsureToken();

            var builder = new MeQueryBuilder();

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

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