/// <summary>
 /// Initializes an instance with the specified <paramref name="identifier"/>, <paramref name="limit"/>,
 /// <paramref name="until"/> and collection of <paramref name="fields"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the page or user.</param>
 /// <param name="limit">The maximum amount of items to be returned per page.</param>
 /// <param name="until">The timestamp that points to the end of the range of time-based data.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 public FacebookGetFeedOptions(string identifier, int limit, EssentialsTime until, FacebookFieldsCollection fields) : this()
 {
     Identifier = identifier;
     Limit      = limit;
     Until      = until;
     Fields     = fields ?? new FacebookFieldsCollection();
 }
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="identifier"/>, <paramref name="limit"/>,
 /// <paramref name="after"/> cursor and <paramref name="fields"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the album.</param>
 /// <param name="limit">The maximum amount of albums to be returned per page.</param>
 /// <param name="after">The cursor pointing to the last item on the previous page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 public FacebookGetCommentsOptions(string identifier, int limit, string after, FacebookFieldsCollection fields)
 {
     Identifier = identifier;
     Limit      = limit;
     After      = after;
     Fields     = fields ?? new FacebookFieldsCollection();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance based on the specified <paramref name="identifier"/>, <paramref name="limit"/>
 /// and <paramref name="until"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the page or user.</param>
 /// <param name="limit">The maximum amount of items to be returned per page.</param>
 /// <param name="until">The timestamp that points to the end of the range of time-based data.</param>
 public FacebookGetFeedOptions(string identifier, int limit, EssentialsDateTime until)
 {
     Identifier = identifier;
     Limit      = limit;
     Until      = until;
     Fields     = new FacebookFieldsCollection();
 }
 /// <summary>
 /// Gets information about the post with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the post.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 public IHttpResponse GetPost(string identifier, FacebookFieldsCollection fields)
 {
     if (String.IsNullOrWhiteSpace(identifier))
     {
         throw new ArgumentNullException(nameof(identifier));
     }
     return(GetPost(new FacebookGetPostOptions(identifier, fields)));
 }
 /// <summary>
 /// Gets a list of albums of the user or page with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID or alias) of the user or page.</param>
 /// <param name="limit">The maximum amount of albums to be returned on each page.</param>
 /// <param name="after">The cursor pointing to the last item on the previous page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 public IHttpResponse GetAlbums(string identifier, int limit, string after, FacebookFieldsCollection fields)
 {
     if (String.IsNullOrWhiteSpace(identifier))
     {
         throw new ArgumentNullException(nameof(identifier));
     }
     return(GetAlbums(new FacebookGetAlbumsOptions(identifier, limit, after, fields)));
 }
 /// <summary>
 /// Gets information about the album with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The ID of the album.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 public IHttpResponse GetAlbum(string identifier, FacebookFieldsCollection fields)
 {
     if (String.IsNullOrWhiteSpace(identifier))
     {
         throw new ArgumentNullException(nameof(identifier), "A Facebook identifier (ID) must be specified.");
     }
     return(GetAlbum(new FacebookGetAlbumOptions(identifier, fields)));
 }
Пример #7
0
 /// <summary>
 /// Gets information about the app with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier of the app. Can either be "app" or the ID of the app.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns>
 public SocialHttpResponse GetApplication(string identifier, FacebookFieldsCollection fields)
 {
     if (String.IsNullOrWhiteSpace(identifier))
     {
         throw new ArgumentNullException("identifier", "A Facebook identifier (ID) must be specified.");
     }
     return(GetApplication(new FacebookGetApplicationOptions(identifier, fields)));
 }
 /// <summary>
 /// Gets a list of photos of the album, user or page with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the parent object.</param>
 /// <param name="limit">The maximum amount of photos to be returned per page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 public IHttpResponse GetPhotos(string identifier, int limit, FacebookFieldsCollection fields)
 {
     if (String.IsNullOrWhiteSpace(identifier))
     {
         throw new ArgumentNullException(nameof(identifier), "A Facebook identifier (ID or alias) must be specified.");
     }
     return(GetPhotos(new FacebookGetPhotosOptions(identifier, limit, fields)));
 }
Пример #9
0
 /// <summary>
 /// Gets a list of posts of the user or page with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID or alias) of the user or page.</param>
 /// <param name="limit">The maximum amount of posts to be returned on each page.</param>
 /// <param name="until">A timestamp that points to the start of the range of time-based data.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="FacebookGetPostsResponse"/> representing the response.</returns>
 public FacebookGetPostsResponse GetPosts(string identifier, int limit, EssentialsDateTime until, FacebookFieldsCollection fields)
 {
     return(FacebookGetPostsResponse.ParseResponse(Raw.GetPosts(identifier, limit, until, fields)));
 }
Пример #10
0
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="limit"/> and <paramref name="fields"/>.
 /// </summary>
 /// <param name="limit">The maximum amount of albums to be returned per page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 public FacebookGetAccountsOptions(int limit, FacebookFieldsCollection fields)
 {
     Limit  = limit;
     Fields = fields ?? new FacebookFieldsCollection();
 }
Пример #11
0
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="limit"/>.
 /// </summary>
 /// <param name="limit">The maximum amount of albums to be returned per page.</param>
 public FacebookGetAccountsOptions(int limit)
 {
     Limit  = limit;
     Fields = new FacebookFieldsCollection();
 }
Пример #12
0
 /// <summary>
 /// Initializes a new instance with default options.
 /// </summary>
 public FacebookGetLikesOptions()
 {
     Fields = new FacebookFieldsCollection();
 }
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="identifier"/> and <paramref name="fields"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the user.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 public FacebookGetCommentsOptions(string identifier, FacebookFieldsCollection fields)
 {
     Identifier = identifier;
     Fields     = fields ?? new FacebookFieldsCollection();
 }
Пример #14
0
 /// <summary>
 /// Initializes a new instance based on the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the page or user.</param>
 public FacebookGetFeedOptions(string identifier) : this()
 {
     Identifier = identifier;
     Fields     = new FacebookFieldsCollection();
 }
Пример #15
0
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the comment.</param>
 public FacebookGetCommentOptions(string identifier)
 {
     Identifier = identifier;
     Fields     = new FacebookFieldsCollection();
 }
Пример #16
0
 /// <summary>
 /// Initializes an instance with default options.
 /// </summary>
 public FacebookGetFeedOptions()
 {
     Fields = new FacebookFieldsCollection();
 }
Пример #17
0
 /// <summary>
 /// Gets a list of items from the feed of the user or page with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID or alias) of the user or page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 public IHttpResponse GetFeed(string identifier, FacebookFieldsCollection fields)
 {
     return(GetFeed(new FacebookGetFeedOptions(identifier, fields)));
 }
 /// <summary>
 /// Gets a list of comments for the object with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the parent object.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns>
 public SocialHttpResponse GetComments(string identifier, FacebookFieldsCollection fields)
 {
     return(GetComments(new FacebookGetCommentsOptions(identifier, fields)));
 }
 /// <summary>
 /// Initializes an instance with default options.
 /// </summary>
 public FacebookGetEventOptions()
 {
     Fields = new FacebookFieldsCollection();
 }
Пример #20
0
 /// <summary>
 /// Gets a list of items from the feed of the user or page with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID or alias) of the user or page.</param>
 /// <param name="limit">The maximum amount of items to be returned on each page.</param>
 /// <param name="until">A timestamp that points to the start of the range of time-based data.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 public IHttpResponse GetFeed(string identifier, int limit, EssentialsDateTime until, FacebookFieldsCollection fields)
 {
     return(GetFeed(new FacebookGetFeedOptions(identifier, limit, until, fields)));
 }
 /// <summary>
 /// Initializes the class with default options.
 /// </summary>
 public FacebookGetCommentsOptions()
 {
     Fields = new FacebookFieldsCollection();
 }
Пример #22
0
 /// <summary>
 /// Initializes a new instance based on the specified <paramref name="identifier"/>, <paramref name="limit"/>
 /// and collection of <paramref name="fields"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the page or user.</param>
 /// <param name="limit">The maximum amount of items to be returned per page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 public FacebookGetFeedOptions(string identifier, int limit, FacebookFieldsCollection fields) : this()
 {
     Identifier = identifier;
     Limit      = limit;
     Fields     = fields ?? new FacebookFieldsCollection();
 }
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="identifier"/> and <paramref name="limit"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the user.</param>
 /// <param name="limit">The maximum amount of albums to be returned per page.</param>
 public FacebookGetCommentsOptions(string identifier, int limit)
 {
     Identifier = identifier;
     Limit      = limit;
     Fields     = new FacebookFieldsCollection();
 }
 /// <summary>
 /// Gets information about accounts associated with the current user by calling the <code>/me/accounts</code>
 /// method. This call requires a user access token as well as the <code>manage_scope</code>.
 /// </summary>
 /// <param name="limit">The maximum amount of albums to be returned per page.</param>
 /// <param name="fields">A collection of the fields to be returned by the API.</param>
 /// <returns>An instance of <see cref="SocialHttpResponse"/> representing the raw response.</returns>
 public SocialHttpResponse GetAccounts(int limit, FacebookFieldsCollection fields)
 {
     return(GetAccounts(new FacebookGetAccountsOptions(limit, fields)));
 }
Пример #25
0
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="limit"/>, <paramref name="after"/> cursor and <paramref name="fields"/>.
 /// </summary>
 /// <param name="limit">The maximum amount of albums to be returned per page.</param>
 /// <param name="after">The cursor pointing to the last item on the previous page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 public FacebookGetAccountsOptions(int limit, string after, FacebookFieldsCollection fields)
 {
     Limit  = limit;
     After  = after;
     Fields = fields ?? new FacebookFieldsCollection();
 }
Пример #26
0
 /// <summary>
 /// Initializes an instance with default options.
 /// </summary>
 public FacebookGetAccountsOptions()
 {
     Fields = new FacebookFieldsCollection();
 }
 /// <summary>
 /// Gets a list of likes for the object with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the parent object.</param>
 /// <param name="limit">The maximum amount of likes to be returned per page.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="FacebookGetLikesResponse"/> representing the response.</returns>
 public FacebookGetLikesResponse GetLikes(string identifier, int limit, FacebookFieldsCollection fields)
 {
     return(FacebookGetLikesResponse.ParseResponse(Raw.GetLikes(identifier, limit, fields)));
 }
Пример #28
0
 /// <summary>
 /// Initializes a new instance with the specified <paramref name="fields"/>.
 /// </summary>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 public FacebookGetAccountsOptions(FacebookFieldsCollection fields)
 {
     Fields = fields ?? new FacebookFieldsCollection();
 }
Пример #29
0
 /// <summary>
 /// Gets a list of comments for the object with the specified <paramref name="identifier"/>.
 /// </summary>
 /// <param name="identifier">The identifier of the parent object.</param>
 /// <param name="fields">A collection of the fields that should be returned by the API.</param>
 /// <returns>An instance of <see cref="FacebookGetCommentsResponse"/> representing the response.</returns>
 public FacebookGetCommentsResponse GetComments(string identifier, FacebookFieldsCollection fields)
 {
     return(FacebookGetCommentsResponse.ParseResponse(Raw.GetComments(identifier, fields)));
 }
Пример #30
0
 /// <summary>
 /// Gets information about accounts associated with the current user by calling the <c>/me/accounts</c>
 /// method. This call requires a user access token as well as the <c>manage_scope</c>.
 /// </summary>
 /// <param name="fields">A collection of the fields to be returned by the API.</param>
 /// <returns>An instance of <see cref="IHttpResponse"/> representing the raw response.</returns>
 public IHttpResponse GetAccounts(FacebookFieldsCollection fields)
 {
     return(GetAccounts(new FacebookGetAccountsOptions(fields)));
 }