Exemple #1
0
 private SonosService(SonosOAuthClient client)
 {
     Client     = client;
     Groups     = new SonosGroupsEndpoint(this);
     Households = new SonosHouseholdsEndpoint(this);
     Players    = new SonosPlayersEndpoint(this);
 }
Exemple #2
0
 /// <summary>
 /// Initialize a new service instance from the specified OAuth <paramref name="client"/>.
 /// </summary>
 /// <param name="client">The OAuth client.</param>
 /// <returns>The created instance of <see cref="SonosService" />.</returns>
 public static SonosService CreateFromOAuthClient(SonosOAuthClient client)
 {
     if (client == null)
     {
         throw new ArgumentNullException(nameof(client));
     }
     return(new SonosService(client));
 }
Exemple #3
0
 internal SonosPlayersRawEndpoint(SonosOAuthClient client)
 {
     Client = client;
 }
 internal SonosGroupsRawEndpoint(SonosOAuthClient client)
 {
     Client = client;
 }
 internal SonosHouseholdsRawEndpoint(SonosOAuthClient client)
 {
     Client = client;
 }