예제 #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(); });
 }
예제 #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(); });
 }