/// <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);
        }
Exemplo n.º 3
0
 internal VimeoMeRawEndpoint(IVimeoOAuthClient client)
 {
     Client = client;
 }
Exemplo n.º 4
0
 internal VimeoVideosRawEndpoint(IVimeoOAuthClient client)
 {
     Client = client;
 }
Exemplo n.º 5
0
 internal VimeoChannelsRawEndpoint(IVimeoOAuthClient client)
 {
     Client = client;
 }