/// <summary>
 /// Initializes an instance with the specified <code>username</code>.
 /// </summary>
 /// <param name="username">The username of the user.</param>
 /// <param name="board">The alias of the board.</param>
 /// <param name="fields">A collection of the fields that should be returned.</param>
 public PinterestGetPinsOptions(string username, string board, PinterestFieldsCollection fields) {
     Board = board;
     Username = username;
     Fields = fields ?? new PinterestFieldsCollection();
 }
 public PinterestGetPinsResponse GetPins(string username, string board, PinterestFieldsCollection fields) {
     if (String.IsNullOrWhiteSpace(username)) throw new ArgumentNullException("username");
     if (String.IsNullOrWhiteSpace(board)) throw new ArgumentNullException("board");
     return PinterestGetPinsResponse.ParseResponse(Raw.GetPins(username, board, fields));
 }
 /// <summary>
 /// Initializes an instance with default options.
 /// </summary>
 public PinterestGetPinsOptions() {
     Fields = new PinterestFieldsCollection();
 }
 public SocialHttpResponse GetPins(string username, string board, PinterestFieldsCollection fields) {
     if (String.IsNullOrWhiteSpace(username)) throw new ArgumentNullException("username");
     if (String.IsNullOrWhiteSpace(board)) throw new ArgumentNullException("board");
     return GetPins(new PinterestGetPinsOptions(username, board, fields));
 }
 /// <summary>
 /// Gets the pin with the specified <code>id</code>.
 /// </summary>
 /// <param name="id">The ID of the pin to be returned.</param>
 /// <param name="fields">The fields to be returned for the pin.</param>
 /// <returns>Returns an instance of <code>PinterestGetPinResponse</code> representing the response.</returns>
 public PinterestGetPinResponse GetPin(string id, PinterestFieldsCollection fields) {
     if (String.IsNullOrWhiteSpace(id)) throw new ArgumentNullException("id");
     return PinterestGetPinResponse.ParseResponse(Raw.GetPin(id, fields));
 }
 /// <summary>
 /// Gets the pin with the specified <code>id</code>.
 /// </summary>
 /// <param name="id">The ID of the pin to be returned.</param>
 /// <param name="fields">The fields to be returned for the pin.</param>
 /// <returns>Returns an instance of <code>SocialHttpResponse</code> representing the response.</returns>
 public SocialHttpResponse GetPin(string id, PinterestFieldsCollection fields) {
     if (String.IsNullOrWhiteSpace(id)) throw new ArgumentNullException("id");
     return GetPin(new PinterestGetPinOptions(id, fields));
 }
 /// <summary>
 /// Initializes an instance with the specified <code>username</code>.
 /// </summary>
 /// <param name="id">The ID of the pin to be returned.</param>
 /// <param name="fields">A collection of the fields that should be returned.</param>
 public PinterestGetPinOptions(string id, PinterestFieldsCollection fields) {
     Id = id;
     Fields = fields ?? new PinterestFieldsCollection();
 }
 /// <summary>
 /// Initializes an instance with the specified <code>identifier</code>.
 /// </summary>
 /// <param name="identifier">The identifier (ID) of the user.</param>
 /// <param name="fields">A collection of the fields that should be returned.</param>
 public PinterestGetUserOptions(string identifier, PinterestFieldsCollection fields) {
     Identifier = identifier;
     Fields = fields ?? new PinterestFieldsCollection();
 }
 /// <summary>
 /// Gets information about the user with the specified <code>identifier</code>.
 /// </summary>
 /// <param name="identifier">The identifier of the user.</param>
 /// <param name="fields">The fields that should be returned.</param>
 /// <returns>Returns an instance of <code>SocialHttpResponse</code> representing the response.</returns>
 public SocialHttpResponse GetUser(string identifier, PinterestFieldsCollection fields) {
     if (String.IsNullOrWhiteSpace(identifier)) throw new ArgumentNullException("identifier");
     return GetUser(new PinterestGetUserOptions(identifier, fields));
 }
 /// <summary>
 /// Gets information about the user with the specified <code>identifier</code>.
 /// </summary>
 /// <param name="identifier">The identifier of the user.</param>
 /// <param name="fields">The fields that should be returned.</param>
 /// <returns>Returns an instance of <code>PinterestGetUserResponse</code> representing the response.</returns>
 public PinterestGetUserResponse GetUser(string identifier, PinterestFieldsCollection fields) {
     if (String.IsNullOrWhiteSpace(identifier)) throw new ArgumentNullException("identifier");
     return PinterestGetUserResponse.ParseResponse(Raw.GetUser(identifier, fields));
 }