ChannelTrait.ProgramCategoryStruct

class ChannelTrait.ProgramCategoryStruct : ClusterStruct


The category associated to a program.

Summary

Nested types

Descriptor enum for this struct's fields.

Public constructors

ProgramCategoryStruct(
    category: String,
    subCategory: OptionalValue<String>
)

Creates the ProgramCategoryStruct class.

Public functions

open StructDescriptor

Returns the descriptor for the struct.

open Any?

Returns the value of the field for the given tag ID.

Public properties

String

The category or genre of the program.

OptionalValue<String>

The sub-category or sub-genre of the program.

Public constructors

ProgramCategoryStruct

ProgramCategoryStruct(
    category: String = "",
    subCategory: OptionalValue<String> = OptionalValue.absent()
)

Creates the ProgramCategoryStruct class.

Public functions

getDescriptor

@HomeExperimentalGenericApi
open fun getDescriptor(): StructDescriptor

Returns the descriptor for the struct.

getFieldValueById

@HomeExperimentalGenericApi
open fun getFieldValueById(tagId: UInt): Any?

Returns the value of the field for the given tag ID.

Public properties

category

val categoryString

The category or genre of the program.

subCategory

val subCategoryOptionalValue<String>

The sub-category or sub-genre of the program.