BroadcastManager class
Broadcast Manager:
There are some operations that can be performed on a single broadcast, for which you require a BroadcastManager
Constructors
- BroadcastManager({required String broadcastId})
Properties
- broadcastId → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addQA(
{required String question}) → Future< void> - Creates a new QA
-
getAd(
{required String qaId}) → Future< QuestionAnswer> -
Returns a
QuestionAnswerof the broadcast -
getBannedUsers(
) → Future< List< BanUser> > -
Returns List of
BanUserof this broadcast -
getChannelManager(
{required String channelId}) → ChannelManager - Contains all data related to channel
-
getChannels(
) → Future< List< Channel> > - Returns List of Channel of the broadcast
-
getFeatures(
) → Future< Features> -
Returns
Featuresof the broadcast -
getFileArchives(
) → Future< List< FileArchive> > -
Returns the List of
FileArchiveavailable in this broadcast -
getGeneralChatSettings(
) → Future< GeneralChatSettings> -
Returns
GeneralChatSettingsof chat of the broadcast -
getPollInfo(
{required String pollId}) → Future< Poll> - Returns the Poll info
-
getPollManager(
{required String pollId}) → PollManager -
Returns an instance of
PollManagerwhich can be used for operations related to a specific poll having a unique id known as pollId -
getPolls(
) → Future< List< Poll> > - Returns the List of Poll available for this broadcast
-
getQA(
{required String qaId}) → Future< QuestionAnswer> -
Returns a
QAof the broadcast -
getQAs(
{required bool includeUserQuestions}) → Future< List< QuestionAnswer> > -
Returns List of
QuestionAnswerof current user -
getTabs(
) → Future< Navigation> -
Returns
Navigationcontaining tabs of the broadcast -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe(
dynamic broadcastSubscriptionFunc(Spect8Event)) → void - Subscribes to the broadcast wide messages socket,
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited