Skip to content

Commit 697d13a

Browse files
committed
add fetch my followers/favorite tracks
1 parent 51cebc9 commit 697d13a

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

soundcloud-api@/src/main/java/com/vpaliy/soundcloud/Endpoints.java

+2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ public interface Endpoints {
4141
String ME_DEVICES = "me/devices";
4242
String ME_FAVORITE_TRACK = "me/favorites/{id}";
4343
String ME_FOLLOW = "me/followings/{id}";
44+
String ME_FAVORITE_TRACKS = "me/favorites";
45+
String ME_FOLLOWERS = "me/followings";
4446

4547
String SUGGESTED_USERS = "users/suggested";
4648

soundcloud-api@/src/main/java/com/vpaliy/soundcloud/SoundCloudService.java

+6
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,12 @@ public interface SoundCloudService {
118118
@GET(Endpoints.ME_ACTIVITIES)
119119
Single<List<ConnectionEntity>> fetchMyConnections();
120120

121+
@GET(Endpoints.ME_FOLLOWERS)
122+
Single<List<UserEntity>> fetchMyFollowings();
123+
124+
@GET(Endpoints.ME_FAVORITE_TRACKS)
125+
Single<List<TrackEntity>> fetchMyFavoriteTracks();
126+
121127
@GET(Endpoints.ME_CONNECTION)
122128
Single<ConnectionEntity> fetchMyConnection(@Path("id") String connectionId);
123129

0 commit comments

Comments
 (0)