channelMemberServicesAsResources property

List<Resource> get channelMemberServicesAsResources

Returns a list of the channel members as Resource objects.

Throws MissingHueNetworkException if the hueNetwork is null, if a member can not be found on the hueNetwork, or if the member's ResourceType cannot be found on the hueNetwork.

Implementation

List<Resource> get channelMemberServicesAsResources {
  List<Relative> members = [];

  for (EntertainmentConfigurationChannel channel in channels) {
    members.addAll(channel.members.map((member) => member.service).toList());
  }

  return getRelativesAsResources(members);
}