Skip to content

Instantly share code, notes, and snippets.

@JoshuaStrunk JoshuaStrunk/ChangeFollowStatus Secret
Created Jan 27, 2017

Embed
What would you like to do?
{
followStatusChange = "Follow" | "Unfollow;
followedReadData.Get();
var bucketToWriteTo = followedReadData["followerStatusUpdateBucketId"];
var result = updateBucket( {
bucketId: bucketToWriteTo,
data: { followersPlayerId: followStatusChange }
});
if(result == Did not write the data) {
return error;
}
if(followStatusChange == "Follow") {
AddFriend({
playfabId: followerPlayerId,
friendPlayFabId: followedPlayerId
});
}
else if(followStatusChange == "Unfollow") {
RemoveFriend({
playfabId: followerPlayerId,
friendPlayFabId: followedPlayerId
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.