PreviewProgram.Builder
class PreviewProgram.Builder
This Builder class simplifies the creation of a PreviewProgram object.
Summary
Public constructors |
|---|
Builder()Creates a new Builder object. |
Builder(other: PreviewProgram!)Creates a new Builder object with values copied from another Program. |
Public functions |
|
|---|---|
PreviewProgram! |
build() |
PreviewProgram.Builder! |
setChannelId(channelId: Long)Sets the ID of the |
PreviewProgram.Builder! |
Sets the weight of the preview program within the channel. |
Public constructors
Builder
Builder(other: PreviewProgram!)
Creates a new Builder object with values copied from another Program.
| Parameters | |
|---|---|
other: PreviewProgram! |
The Program you're copying from. |
Public functions
build
fun build(): PreviewProgram!
| Returns | |
|---|---|
PreviewProgram! |
A new Program with values supplied by the Builder. |
setChannelId
fun setChannelId(channelId: Long): PreviewProgram.Builder!
Sets the ID of the Channel that contains this program.
| Parameters | |
|---|---|
channelId: Long |
The value of |
setWeight
fun setWeight(weight: Int): PreviewProgram.Builder!
Sets the weight of the preview program within the channel.
| Parameters | |
|---|---|
weight: Int |
The value of |
| Returns | |
|---|---|
PreviewProgram.Builder! |
This Builder object to allow for chaining of calls to builder methods. |