public static class LiveEventConfig.Builder extends Object
LiveEventConfig
.Constructor and Description |
---|
Builder()
Constructor of
LiveEventConfig.Builder . |
Modifier and Type | Method and Description |
---|---|
LiveEventConfig |
build()
Creates a
LiveEventConfig by this builder. |
LiveEventConfig.Builder |
category(Integer category)
Sets category id of the live event.
|
LiveEventConfig.Builder |
dvrEnabled(boolean enabled)
Set whether to enable live DVR feature for a live event.
|
LiveEventConfig.Builder |
highestResolution(Resolution resolution)
Deprecated.
use
profile(Profile) instead. |
LiveEventConfig.Builder |
listed(boolean listed)
Sets if the live event should be listed.
|
LiveEventConfig.Builder |
profile(Profile profile)
Sets the profile of the live event. {360p,720p,720p_and_source,1080p_and_source} Note: 1080p_and_source can only be used when the account is enabled highest resolution 1080p authority.
|
LiveEventConfig.Builder |
synopsis(String synopsis)
Sets synopsis of the live event.
|
LiveEventConfig.Builder |
title(String title)
Sets title of the live event.
|
LiveEventConfig.Builder |
vodAvailable(boolean available)
Set whether the new vod of this live event is available by users.
|
LiveEventConfig.Builder |
vodListed(boolean listed)
Set whether to list the new vod of this live event.
|
LiveEventConfig.Builder |
vodMerge(boolean merge)
Set whether to merge all VoDs of the live event together.
|
public Builder()
LiveEventConfig.Builder
.public LiveEventConfig.Builder title(@NonNull String title)
title
- titlepublic LiveEventConfig.Builder synopsis(String synopsis)
synopsis
- synopsispublic LiveEventConfig.Builder listed(boolean listed)
listed
- should the live event be listedpublic LiveEventConfig.Builder category(Integer category)
category
- category id@Deprecated public LiveEventConfig.Builder highestResolution(Resolution resolution)
profile(Profile)
instead.Resolution._720p
.resolution
- highest resolutionpublic LiveEventConfig.Builder profile(Profile profile)
Profile._720P
.profile
- profile of the live eventpublic LiveEventConfig.Builder vodListed(boolean listed)
listed
- true if you want the new vod listedpublic LiveEventConfig.Builder vodAvailable(boolean available)
available
- true if you want the new vod available by userspublic LiveEventConfig.Builder vodMerge(boolean merge)
merge
- true if you want to merge all VoDs of the live event togetherpublic LiveEventConfig.Builder dvrEnabled(boolean enabled)
enabled
- true if you want to enable live DVR feature for a live eventpublic LiveEventConfig build()
LiveEventConfig
by this builder.