private event_members GetMembers(long eid, bool isAsync, EventGetMembersCallback callback, Object state) { var parameterList = new Dictionary <string, string> { { "method", "facebook.events.getMembers" } }; Utilities.AddRequiredParameter(parameterList, "eid", eid); if (isAsync) { SendRequestAsync(parameterList, !string.IsNullOrEmpty(Session.SessionKey), new FacebookCallCompleted <event_members>(callback), state); return(null); } return(SendRequest <events_getMembers_response>(parameterList, !string.IsNullOrEmpty(Session.SessionKey))); }
private event_members GetMembers(long eid, bool isAsync, EventGetMembersCallback callback, Object state) { var parameterList = new Dictionary<string, string> { { "method", "facebook.events.getMembers" } }; Utilities.AddRequiredParameter(parameterList, "eid", eid); if (isAsync) { SendRequestAsync(parameterList, !string.IsNullOrEmpty(Session.SessionKey), new FacebookCallCompleted<event_members>(callback), state); return null; } return SendRequest<events_getMembers_response>(parameterList, !string.IsNullOrEmpty(Session.SessionKey)); }
/// <summary> /// Returns membership list data associated with an event. /// </summary> /// <example> /// <code> /// private static void RunDemoAsync() /// { /// Api api = new Api(new DesktopSession(Constants.ApplicationKey, Constants.ApplicationSecret, Constants.ApplicationSecret, Constants.SessionKey)); /// api.Events.GetMembersAsync(Constants.EventId, AsyncDemoCompleted, null); /// } /// /// private static void AsyncDemoCompleted(event_members result, Object state, FacebookException e) /// { /// var actual = result; /// } /// </code> /// </example> /// <param name="eid">The event ID.</param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> /// <returns>This method returns four (possibly empty) lists of users associated with an event, keyed on their RSVP statuses. These lists should never share any members.</returns> public void GetMembersAsync(long eid, EventGetMembersCallback callback, Object state) { GetMembers(eid, true, callback, state); }
/// <summary> /// Returns membership list data associated with an event. /// </summary> /// <example> /// <code> /// private static void RunDemoAsync() /// { /// Api api = new Api(new DesktopSession(Constants.ApplicationKey, Constants.ApplicationSecret, Constants.ApplicationSecret, Constants.SessionKey)); /// api.Events.GetMembersAsync(Constants.EventId, AsyncDemoCompleted, null); /// } /// /// private static void AsyncDemoCompleted(event_members result, Object state, FacebookException e) /// { /// var actual = result; /// } /// </code> /// </example> /// <param name="eid">The event ID.</param> /// <param name="callback">The AsyncCallback delegate</param> /// <param name="state">An object containing state information for this asynchronous request</param> /// <returns>This method returns four (possibly empty) lists of users associated with an event, keyed on their RSVP statuses. These lists should never share any members.</returns> public void GetMembersAsync(long eid, EventGetMembersCallback callback, Object state) { GetMembers(eid, true, callback, state); }