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

Fixed folllow/unfollow not using the correct response in ChannelsService #73

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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