Пример #1
0
 /// <summary>
 /// Add a friend for a user. The friend relationship is required in order to
 /// initiate a game.
 /// </summary>
 /// <param name="key1"></param>
 /// <param name="user2"></param>
 /// <returns></returns>
 public async Task AddUserFriend(string key1, User user2)
 {
     UserFriend userFriend = new UserFriend {
         User1Key = key1, User2Key = user2.id, User2Name = user2.UserName
     };
     await client.GetTable <UserFriend>().InsertAsync(userFriend);
 }
 /// <summary>
 /// Add a friend for a user. The friend relationship is required in order to 
 /// initiate a game.
 /// </summary>
 /// <param name="key1"></param>
 /// <param name="user2"></param>
 /// <returns></returns>
 public async Task AddUserFriend(string key1, User user2)
 {
     UserFriend userFriend = new UserFriend { User1Key = key1, User2Key = user2.id, User2Name = user2.UserName };
     await client.GetTable<UserFriend>().InsertAsync(userFriend);
 }