Exemplo n.º 1
0
 //Update a friend
 public static void PutFriend(string friendName, Friend friend, PostFriendCallback callback)
 {
     RestClient.Put($"{databaseURL}friend/" + friendName + ".json", friend).Then(response => { callback(); });
 }
Exemplo n.º 2
0
 //Create a Friend
 public static void PostFriend(Friend friend, string friendName, PostFriendCallback callback)
 {
     RestClient.Put <Friend>($"{databaseURL}friend/{friendName}.json", friend).Then(response => { callback(); });
 }