Exemplo n.º 1
0
		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);
		}
Exemplo n.º 2
0
 public bool AreFriends(Friend friend1, Friend friend2)
 {
     return AreFriends (friend1.UId, friend2.UId);
 }
Exemplo n.º 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;
        }
Exemplo n.º 4
0
		public bool IsFriendsWith (Friend friend)
		{
			FriendInfo[] info = IsFriendsWith (new Friend[] { friend });
			return info[0].AreFriends;
		}