Beispiel #1
0
        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);
        }
Beispiel #2
0
        private async Task <IEnumerable <string> > GetMyFriends(string currentUserUuid)
        {
            var result = await _http.Get("friendship", "/GetUserFriendsUuids", "currentUserUuid=" + currentUserUuid);

            return(JsonConvert.DeserializeObject <string[]>(result));
        }