/// <summary>
 /// Gets information about the photo 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 GetPhoto(FacebookGetPhotoOptions options)
 {
     if (options == null)
     {
         throw new ArgumentNullException(nameof(options));
     }
     if (String.IsNullOrWhiteSpace(options.Identifier))
     {
         throw new PropertyNotSetException(nameof(options.Identifier), "A Facebook identifier (ID) must be specified.");
     }
     return(Client.DoHttpGetRequest("/" + options.Identifier, options));
 }
Beispiel #2
0
 /// <summary>
 /// Gets information about the photo 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="FacebookGetPhotoResponse"/> representing the response.</returns>
 public FacebookGetPhotoResponse GetPhoto(FacebookGetPhotoOptions options)
 {
     return(FacebookGetPhotoResponse.ParseResponse(Raw.GetPhoto(options)));
 }