public FriendInfo[] IsFriendsWith (Friend[] friends)
		{
			long[] me = new long[friends.Length];
			for (int i = 0; i < me.Length; i++)
				me[i] = UId;

			long[] them = new long[friends.Length];
			for (int i = 0; i < friends.Length; i++)
			{
				them[i] = friends[i].UId;
			}

			return Session.AreFriends (me, them);
		}
Beispiel #2
0
 public bool AreFriends(Friend friend1, Friend friend2)
 {
     return AreFriends (friend1.UId, friend2.UId);
 }
Beispiel #3
0
        public Friend[] GetFriends()
        {
            FriendsResponse response = Util.GetResponse<FriendsResponse>("facebook.friends.get",
                    FacebookParam.Create ("session_key", SessionKey),
                    FacebookParam.Create ("call_id", DateTime.Now.Ticks));

            Friend[] friends = new Friend[response.UIds.Length];

            for (int i = 0; i < friends.Length; i++)
                friends[i] = new Friend (response.UIds[i], this);

            return friends;
        }
		public bool IsFriendsWith (Friend friend)
		{
			FriendInfo[] info = IsFriendsWith (new Friend[] { friend });
			return info[0].AreFriends;
		}