Entertainment class
Represents an entertainment resource.
Constructors
- Entertainment({required ResourceType type, required String id, String idV1 = "", required Relative owner, required bool isRenderer, required bool isProxy, required bool isEqualizer, required int maxStreams, required EntertainmentSegmentCapabilities segmentCapabilities})
- Creates a Entertainment object.
- Entertainment.empty()
- Creates an empty Entertainment object.
-
Entertainment.fromJson(Map<
String, dynamic> dataMap) -
Creates a Entertainment object from the JSON response to a GET request.
factory
Properties
- bridge ↔ Bridge?
-
The bridge that this resource is associated with.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setteroverride
- hueNetwork ↔ HueNetwork?
-
The HueNetwork that this resource is associated with.
getter/setter pairinherited
- id → String
-
Unique identifier representing a specific resource instance.
finalinherited
- idV1 → String
-
Clip v1 resource identifier.
final
- isEqualizer → bool
-
Whether or not a lamp can handle the equalization factor to dimming
maximum brightness in a stream.
final
- isProxy → bool
-
Whether or not a lamp can be used for entertainment streaming as a proxy
node.
final
- isRenderer → bool
-
Whether or not a lamp can be used for entertainment streaming as renderer.
final
- maxStreams → int
-
Indicates the maximum number of parallel streaming sessions the bridge
supports.
final
- originalType → ResourceType
-
no setterinherited
- owner → Relative
-
Owner of this service, in case the owner service is deleted, this service
also gets deleted.
final
- ownerAsResource → Resource
-
Returns a Resource object that represents the owner of this
Resource.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- segmentCapabilities → EntertainmentSegmentCapabilities
-
Holds all parameters concerning the segmentation capabilities of a device.
final
- type ↔ ResourceType
-
Type of the supported resource.
getter/setter pairinherited
Methods
-
copyWith(
{ResourceType? type, String? id, String? idV1, Relative? owner, bool? isRenderer, bool? isProxy, bool? isEqualizer, int? maxStreams, EntertainmentSegmentCapabilities? segmentCapabilities, bool copyOriginalValues = true}) → Entertainment - Returns a copy of this object with its field values replaced by the ones provided to this method.
-
getRelativeAsResource(
Relative relative) → Resource -
Returns a Resource object that represents the
relative
of this Resource.inherited -
getRelativesAsResources(
List< Relative> relatives) → List<Resource> -
Returns a list of Resource objects that represent the
relatives
of this Resource.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshOriginals(
) → void -
Called after a successful PUT request, this method refreshed the
"original" data in this object.
inherited
-
toJson(
{OptimizeFor optimizeFor = OptimizeFor.put}) → Map< String, dynamic> -
Converts this object into JSON format.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override