private VimeoService() { Channels = new VimeoChannelsEndpoint(this); People = new VimeoPeopleEndpoint(this); Test = new VimeoTestEndpoint(this); Videos = new VimeoVideosEndpoint(this); }
/// <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); }