private async Task <bool> IsMyFriend(string postOwnerUuid) { var friendshipStatusDto = await _http.Get( "friendship", "/CheckStatus", "userToCheck=" + postOwnerUuid); var friendshipStatus = JsonConvert.DeserializeObject <FriendshipDto>(friendshipStatusDto); return(friendshipStatus.Status == FriendshipStatus.ACCEPTED); }
private async Task <IEnumerable <string> > GetMyFriends(string currentUserUuid) { var result = await _http.Get("friendship", "/GetUserFriendsUuids", "currentUserUuid=" + currentUserUuid); return(JsonConvert.DeserializeObject <string[]>(result)); }