/// <summary> /// Initialize a new service instance from the specified OAuth client. /// </summary> /// <param name="client">The OAuth client.</param> public static PinterestService CreateFromOAuthClient(PinterestOAuthClient client) { // This should never be null if (client == null) throw new ArgumentNullException("client"); // Initialize the service return new PinterestService(client); }
private PinterestService(PinterestOAuthClient client) { Client = client; Boards = new PinterestBoardsEndpoint(this); Pins = new PinterestPinsEndpoint(this); Users = new PinterestUsersEndpoint(this); }
internal PinterestPinsRawEndpoint(PinterestOAuthClient client) { Client = client; }