/// <summary> /// Initialize a new service instance from the specified OAuth client. /// </summary> /// <param name="client">The OAuth client.</param> /// <returns>An instance of <see cref="VimeoHttpService" />.</returns> public static VimeoHttpService CreateFromOAuthClient(IVimeoOAuthClient client) { if (client == null) { throw new ArgumentNullException(nameof(client)); } return(new VimeoHttpService(client)); }
/// <summary> /// Initializes a new service instance based on the specified <see cref="IVimeoOAuthClient"/>. /// </summary> /// <param name="client">An instance of <see cref="IVimeoOAuthClient"/>.</param> protected VimeoHttpService(IVimeoOAuthClient client) { Client = client ?? throw new ArgumentNullException(nameof(client)); Channels = new VimeoChannelsEndpoint(this); Me = new VimeoMeEndpoint(this); Users = new VimeoUsersEndpoint(this); Videos = new VimeoVideosEndpoint(this); }
internal VimeoMeRawEndpoint(IVimeoOAuthClient client) { Client = client; }
internal VimeoVideosRawEndpoint(IVimeoOAuthClient client) { Client = client; }
internal VimeoChannelsRawEndpoint(IVimeoOAuthClient client) { Client = client; }