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

Commit

Permalink
Fixed follow/unfollow methods in Channel Service not returning a resp…
Browse files Browse the repository at this point in the history
…onse
  • Loading branch information
MJRLegends committed Aug 20, 2019
1 parent 6529529 commit d019165
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import com.mixer.api.response.channels.ChannelStatusResponse;
import com.mixer.api.response.channels.ShowChannelsResponse;
import com.mixer.api.response.emotes.ChannelEmotesResponse;
import com.mixer.api.response.users.UserFollowsResponse;
import com.mixer.api.services.AbstractHTTPService;
import com.mixer.api.util.Enums;

Expand Down Expand Up @@ -72,14 +73,14 @@ public CheckedFuture<ChannelStatusResponse, MixerException> findRelationship(Mix
));
}

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

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

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

Expand Down

0 comments on commit d019165

Please sign in to comment.