private SonosService(SonosOAuthClient client) { Client = client; Groups = new SonosGroupsEndpoint(this); Households = new SonosHouseholdsEndpoint(this); Players = new SonosPlayersEndpoint(this); }
/// <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)); }
internal SonosPlayersRawEndpoint(SonosOAuthClient client) { Client = client; }
internal SonosGroupsRawEndpoint(SonosOAuthClient client) { Client = client; }
internal SonosHouseholdsRawEndpoint(SonosOAuthClient client) { Client = client; }