/// <summary> /// Gets information about the event matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns> public IHttpResponse GetEvent(FacebookGetEventOptions options) { if (options == null) { throw new ArgumentNullException(nameof(options)); } if (String.IsNullOrWhiteSpace(options.Identifier)) { throw new PropertyNotSetException(nameof(options.Identifier)); } return(Client.DoHttpGetRequest("/" + options.Identifier, options)); }
/// <summary> /// Gets information about the event matching the specified <paramref name="options"/>. /// </summary> /// <param name="options">The options for the call to the API.</param> /// <returns>An instance of <see cref="FacebookGetEventResponse"/> representing the response.</returns> /// <see> /// <cref>https://developers.facebook.com/docs/graph-api/reference/event</cref> /// </see> public FacebookGetEventResponse GetEvent(FacebookGetEventOptions options) { return(FacebookGetEventResponse.ParseResponse(Raw.GetEvent(options))); }