public async Task AddPrayerPartner(User first, User second) { FriendsDTO friends = new FriendsDTO () { FriendAId = first.Id, FriendBId = second.Id }; await client.InvokeApiAsync<FriendsDTO,object> ("Friends/PostFriends/", friends); }
public async Task RemovePrayerPartner(User first, User second) { FriendsDTO friends = new FriendsDTO () { FriendAId = first.Id, FriendBId = second.Id }; await client.InvokeApiAsync<FriendsDTO,object> ("UsersCustom/RemovePrayerPartner/", friends); }
public async Task<bool> IsPrayerPartner(User first, User second) { Dictionary<string,string> uid = new Dictionary<string,string>(); uid.Add("firstid",first.Id); uid.Add("secondid",second.Id); return await client.InvokeApiAsync<bool> ("UsersCustom/IsPrayerPartner/", HttpMethod.Get, uid); }