Skip to content
This repository was archived by the owner on Jul 21, 2020. It is now read-only.

Commit d019165

Browse files
committed
Fixed follow/unfollow methods in Channel Service not returning a response
1 parent 6529529 commit d019165

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/main/java/com/mixer/api/services/impl/ChannelsService.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import com.mixer.api.response.channels.ChannelStatusResponse;
1414
import com.mixer.api.response.channels.ShowChannelsResponse;
1515
import com.mixer.api.response.emotes.ChannelEmotesResponse;
16+
import com.mixer.api.response.users.UserFollowsResponse;
1617
import com.mixer.api.services.AbstractHTTPService;
1718
import com.mixer.api.util.Enums;
1819

@@ -72,14 +73,14 @@ public CheckedFuture<ChannelStatusResponse, MixerException> findRelationship(Mix
7273
));
7374
}
7475

75-
public ListenableFuture<?> follow(MixerChannel channel, MixerUser follower) {
76+
public ListenableFuture<UserFollowsResponse> follow(MixerChannel channel, MixerUser follower) {
7677
ImmutableMap.Builder<String, Object> arguments = MixerHttpClient.getArgumentsBuilder();
7778
arguments.put("user", follower.id);
7879

7980
return this.put(channel.id + "/follow", null, arguments.build());
8081
}
8182

82-
public ListenableFuture<?> unfollow(MixerChannel channel, MixerUser exFollower) {
83+
public ListenableFuture<UserFollowsResponse> unfollow(MixerChannel channel, MixerUser exFollower) {
8384
ImmutableMap.Builder<String, Object> arguments = MixerHttpClient.getArgumentsBuilder();
8485
arguments.put("user", exFollower.id);
8586

0 commit comments

Comments
 (0)