public GroupMemberList GetMembers() { GroupMembersResponse rsp = Session.Util.GetResponse <GroupMembersResponse>("facebook.groups.getMembers", FacebookParam.Create("gid", GId), FacebookParam.Create("call_id", DateTime.Now.Ticks), FacebookParam.Create("session_key", Session.SessionKey)); GroupMemberList members = new GroupMemberList(); members.Members = new Friend [rsp.Members.UIds.Length]; for (int i = 0; i < members.Members.Length; i++) { members.Members [i] = new Friend(rsp.Members.UIds [i], this.Session); } members.Admins = new Friend [rsp.Admins.UIds.Length]; for (int i = 0; i < members.Admins.Length; i++) { members.Admins [i] = new Friend(rsp.Admins.UIds [i], this.Session); } members.NotReplied = new Friend [rsp.NotReplied.UIds.Length]; for (int i = 0; i < members.NotReplied.Length; i++) { members.NotReplied [i] = new Friend(rsp.NotReplied.UIds [i], this.Session); } members.Officers = new Friend [rsp.Officers.UIds.Length]; for (int i = 0; i < members.Officers.Length; i++) { members.Officers [i] = new Friend(rsp.Officers.UIds [i], this.Session); } return(members); }
public GroupMemberList GetMembers() { GroupMembersResponse rsp = Session.Util.GetResponse<GroupMembersResponse>("facebook.groups.getMembers", FacebookParam.Create ("gid", GId), FacebookParam.Create ("call_id", DateTime.Now.Ticks), FacebookParam.Create ("session_key", Session.SessionKey)); GroupMemberList members = new GroupMemberList (); members.Members = new Friend [rsp.Members.UIds.Length]; for (int i = 0; i < members.Members.Length; i++) members.Members [i] = new Friend (rsp.Members.UIds [i], this.Session); members.Admins = new Friend [rsp.Admins.UIds.Length]; for (int i = 0; i < members.Admins.Length; i++) members.Admins [i] = new Friend (rsp.Admins.UIds [i], this.Session); members.NotReplied = new Friend [rsp.NotReplied.UIds.Length]; for (int i = 0; i < members.NotReplied.Length; i++) members.NotReplied [i] = new Friend (rsp.NotReplied.UIds [i], this.Session); members.Officers = new Friend [rsp.Officers.UIds.Length]; for (int i = 0; i < members.Officers.Length; i++) members.Officers [i] = new Friend (rsp.Officers.UIds [i], this.Session); return members; }