Public Member Functions | |
void | Refresh (OpenChannelRefreshHandler handler) |
void | UpdateOperators (List< User > operators, long updateTs) |
void | DeleteChannel (OpenChannelDeleteHandler handler) |
void | UpdateChannel (string name, object coverUrlOrImage, string data, OpenChannelUpdateHandler handler) |
void | UpdateChannel (string name, object coverUrlOrImage, string data, List< User > operatorUsers, OpenChannelUpdateHandler handler) |
void | UpdateChannel (string name, object coverUrlOrImage, string data, string customType, List< User > operatorUsers, OpenChannelUpdateHandler handler) |
void | UpdateChannelWithOperatorUserIds (string name, object coverUrlOrImage, string data, List< string > operatorUserIds, OpenChannelUpdateHandler handler) |
void | UpdateChannelWithOperatorUserIds (string name, object coverUrlOrImage, string data, string customType, List< string > operatorUserIds, OpenChannelUpdateHandler handler) |
void | Enter (OpenChannelEnterHandler handler) |
void | Exit (OpenChannelExitHandler handler) |
delegate void | OpenChannelUpdateHandler (OpenChannel channel, SendBirdException e) |
delegate void | OpenChannelRefreshHandler (SendBirdException e) |
UserListQuery | CreateParticipantListQuery () |
UserListQuery | CreateMutedUserListQuery () |
UserListQuery | CreateBannedUserListQuery () |
void | BanUser (User user, int seconds, OpenChannelBanHandler handler) |
void | BanUserWithUserId (string userId, int seconds, OpenChannelBanHandler handler) |
void | UnbanUser (User user, OpenChannelUnbanHandler handler) |
void | UnbanUserWithUserId (string userId, OpenChannelUnbanHandler handler) |
void | MuteUser (User user, OpenChannelMuteHandler handler) |
void | MuteUserWithUserId (string userId, OpenChannelMuteHandler handler) |
void | UnmuteUser (User user, OpenChannelUnmuteHandler handler) |
void | UnmuteUserWithUserId (string userId, OpenChannelUnmuteHandler handler) |
bool | IsOperator (User user) |
bool | IsOperatorWithUserId (string userId) |
List< User > | GetOperators () |
delegate void | OpenChannelEnterHandler (SendBirdException e) |
delegate void | OpenChannelExitHandler (SendBirdException e) |
delegate void | OpenChannelGetHandler (OpenChannel channel, SendBirdException e) |
delegate void | OpenChannelCreateHandler (OpenChannel channel, SendBirdException e) |
delegate void | OpenChannelBanHandler (SendBirdException e) |
delegate void | OpenChannelUnbanHandler (SendBirdException e) |
delegate void | OpenChannelMuteHandler (SendBirdException e) |
delegate void | OpenChannelUnmuteHandler (SendBirdException e) |
delegate void | OpenChannelDeleteHandler (SendBirdException e) |
Public Member Functions inherited from SendBird.BaseChannel | |
bool | IsOpenChannel () |
bool | IsGroupChannel () |
PreviousMessageListQuery | CreatePreviousMessageListQuery () |
MessageListQuery | CreateMessageListQuery () |
OperatorListQuery | CreateOperatorListQuery () |
virtual byte[] | Serialize () |
FileMessage | SendFileMessageWithURL (string fileUrl, string name, string type, int size, string data, SendFileMessageHandler handler) |
FileMessage | SendFileMessageWithURL (string fileUrl, string name, string type, int size, string data, string customType, SendFileMessageHandler handler) |
FileMessage | SendFileMessage (FileMessageParams param, SendFileMessageHandler handler) |
void | GetMessagesByTimestamp (long ts, MessageListParams param, GetMessagesHandler handler) |
void | GetPreviousMessagesByTimestamp (long ts, bool isInclusive, int prevResultSize, bool reverse, MessageTypeFilter messageType, string customType, GetMessagesHandler handler) |
FileMessage | SendFileMessage (SBFile file, string name, string type, int size, string data, SendFileMessageHandler handler) |
FileMessage | SendFileMessage (SBFile file, string name, string type, int size, string data, FileUploadWithProgressHandler handler) |
FileMessage | SendFileMessage (SBFile file, string name, string type, int size, string data, string customType, FileUploadWithProgressHandler handler) |
FileMessage | SendFileMessage (SBFile file, string name, string type, int size, string data, string customType, SendFileMessageHandler handler) |
UserMessage | SendUserMessage (string message, SendUserMessageHandler handler) |
UserMessage | SendUserMessage (string message, string data, SendUserMessageHandler handler) |
UserMessage | SendUserMessage (string message, string data, string customType, SendUserMessageHandler handler) |
UserMessage | SendUserMessage (string message, string data, string customType, List< string > targetLangs, SendUserMessageHandler handler) |
UserMessage | SendUserMessage (UserMessageParams param, SendUserMessageHandler handler) |
void | CreateMetaCounters (Dictionary< string, int > metaCounterMap, MetaCounterHandler handler) |
void | UpdateMetaCounters (Dictionary< string, int > metaCounterMap, MetaCounterHandler handler) |
void | IncreaseMetaCounters (Dictionary< string, int > metaCounterMap, MetaCounterHandler handler) |
void | DecreaseMetaCounters (Dictionary< string, int > metaCounterMap, MetaCounterHandler handler) |
void | GetMetaCounters (List< string > keys, MetaCounterHandler handler) |
void | GetAllMetaCounters (MetaCounterHandler handler) |
void | DeleteMetaCounter (string key, DeleteMetaCounterHandler handler) |
void | DeleteAllMetaCounters (DeleteMetaCounterHandler handler) |
void | CreateMetaData (Dictionary< string, string > metaDataMap, MetaDataHandler handler) |
void | UpdateMetaData (Dictionary< string, string > metaDataMap, MetaDataHandler handler) |
void | GetMetaData (List< string > keys, MetaDataHandler handler) |
void | GetAllMetaData (MetaDataHandler handler) |
void | DeleteMetaData (string key, DeleteMetaDataHandler handler) |
void | DeleteAllMetaData (DeleteMetaDataHandler handler) |
void | DeleteMessage (BaseMessage message, DeleteMessageHandler handler) |
void | UpdateUserMessage (long messageId, string message, string data, string customType, UpdateMessageHandler handler) |
void | UpdateUserMessage (long messageId, UserMessageParams param, UpdateUserMessageHandler handler) |
void | UpdateFileMessage (long messageId, FileMessageParams param, UpdateFileMessageHandler handler) |
void | Report (ReportCategory reportCategory, string reportDescription, ReportHandler handler) |
void | ReportUser (User offendingUser, ReportCategory reportCategory, string reportDescription, ReportUserHandler handler) |
void | ReportMessage (BaseMessage message, ReportCategory reportCategory, string reportDescription, ReportMessageHandler handler) |
void | AddOperators (List< string > userIds, AddOperatorsHandler handler) |
void | RemoveOperators (List< string > userIds, RemoveOperatorsHandler handler) |
void | RemoveAllOperators (RemoveAllOperatorsHandler handler) |
void | GetMyMutedInfo (GetMyMutedInfoHandler handler) |
delegate void | OnGetChannelHandler (BaseChannel baseChannel, SendBirdException e) |
delegate void | MetaCounterHandler (Dictionary< string, int > metaCounterMap, SendBirdException e) |
delegate void | DeleteMetaCounterHandler (SendBirdException e) |
delegate void | MetaDataHandler (Dictionary< string, string > metaDataMap, SendBirdException e) |
delegate void | DeleteMetaDataHandler (SendBirdException e) |
delegate void | SendUserMessageHandler (UserMessage message, SendBirdException e) |
delegate void | SendFileMessageHandler (FileMessage message, SendBirdException e) |
delegate void | DeleteMessageHandler (SendBirdException e) |
delegate void | UpdateMessageHandler (UserMessage message, SendBirdException e) |
delegate void | ReportHandler (SendBirdException e) |
delegate void | ReportUserHandler (SendBirdException e) |
delegate void | ReportMessageHandler (SendBirdException e) |
delegate void | SendFileMessagesHandler (FileMessage message, SendBirdException e) |
delegate void | SendFileMessageWithProgressHandler (FileMessage message, SendBirdException e) |
delegate void | SendFileMessagesWithProgressHandler (FileMessage message, SendBirdException e) |
delegate void | SendFileMessagesWithProgressHandlerOnProgress (string reqId, int bytesSent, int totalBytesSent, int totalBytesToSend) |
delegate void | UpdateUserMessageHandler (UserMessage message, SendBirdException e) |
delegate void | UpdateFileMessageHandler (FileMessage message, SendBirdException e) |
delegate void | GetMyMutedInfoHandler (bool isMuted, string description, long startAt, long endAt, long remainingDuration, SendBirdException e) |
delegate void | AddOperatorsHandler (SendBirdException e) |
delegate void | RemoveOperatorsHandler (SendBirdException e) |
delegate void | RemoveAllOperatorsHandler (SendBirdException e) |
delegate void | GetMessagesHandler (List< BaseMessage > message, SendBirdException e) |
Static Public Member Functions | |
static OpenChannelListQuery | CreateOpenChannelListQuery () |
static void | CreateChannel (OpenChannelCreateHandler handler) |
static void | CreateChannel (string name, object coverUrlOrImage, string data, OpenChannelCreateHandler handler) |
static void | CreateChannel (string name, object coverUrlOrImage, string data, List< User > operatorUsers, OpenChannelCreateHandler handler) |
static void | CreateChannel (string name, object coverUrlOrImage, string data, string customType, List< User > operatorUsers, OpenChannelCreateHandler handler) |
static void | CreateChannelWithOperatorUserIds (string name, object coverUrlOrImage, string data, List< string > operatorUserIds, OpenChannelCreateHandler handler) |
static void | CreateChannelWithOperatorUserIds (string name, object coverUrlOrImage, string data, string customType, List< string > operatorUserIds, OpenChannelCreateHandler handler) |
static void | GetChannelInternal (string channelUrl, OpenChannelGetHandler handler) |
static void | GetChannel (bool isInternal, string channelUrl, OpenChannelGetHandler handler) |
static void | GetChannel (string channelUrl, OpenChannelGetHandler handler) |
Static Public Member Functions inherited from SendBird.BaseChannel | |
static string | Base64Decode (string data) |
static byte[] | Base64Encode (string data) |
static BaseChannel | BuildFromSerializedData (byte[] data) |
Properties | |
int | ParticipantCount [get] |
List< User > | Operators [get] |
Properties inherited from SendBird.BaseChannel | |
string | Data [get] |
new string | GetType [get] |
string | CustomType [get] |
string | Url [get] |
long | CreatedAt [get] |
string | Name [get] |
string | CoverUrl [get] |
bool | IsEphemeral [get] |
Additional Inherited Members | |
Public Types inherited from SendBird.BaseChannel | |
enum | ReportCategory { SUSPICIOUS, HARASSING, SPAM, INAPPROPRIATE } |
Represents an open channel.
|
inline |
Bans a participant. Operators can ban participants from this channel. Banned participant is kicked out of this channel and cannot enter during the specified seconds.
user | Participant to ban. |
seconds | Duration the banned User cannot enter this channel again. |
handler | Callback handler. |
|
inline |
Bans a participant. Operators can ban participants from this channel. Banned participant is kicked out of this channel and cannot enter during the specified seconds.
|
inline |
Creates a query instance to get the banned user list from this channel.
|
inlinestatic |
Creates new OpenChannel
.
handler | Callback handler. |
|
inlinestatic |
Creates new OpenChannel
with given information.
name | Name of channel. |
coverUrlOrImage | Cover URL or image file of channel. Pass String , SBFile or null only. This can be used as thumbnail of channel for instance. |
data | Custom data. |
operatorUsers | Operators. Operators can ban or unban other participants (refer to BanUser(User, int, OpenChannelBanHandler) and UnbanUser(User, OpenChannelUnbanHandler)). |
handler | Callback handler. |
|
inlinestatic |
Creates new OpenChannel
with given information.
name | Name of channel. |
coverUrlOrImage | Cover URL or image file of channel. Pass String , SBFile or null only. This can be used as thumbnail of channel for instance. |
data | Custom data. |
handler | Callback handler. |
|
inlinestatic |
Creates new OpenChannel
with given information.
name | Name of channel. |
coverUrlOrImage | Cover URL or image file of channel. Pass String , SBFile or null only. This can be used as thumbnail of channel for instance. |
data | Custom data. |
customType | Custom type. |
operatorUsers | Operators. Operators can ban or unban other participants (refer to BanUser(User, int, OpenChannelBanHandler) and UnbanUser(User, OpenChannelUnbanHandler)). |
handler | Callback handler. |
|
inlinestatic |
Creates new OpenChannel
with given information.
name | Name of channel. |
coverUrlOrImage | Cover URL or image file of channel. Pass String , SBFile or null only. This can be used as thumbnail of channel for instance. |
data | Custom data. |
operatorUserIds | Operator IDs (User IDs). Operators can ban or unban other participants (refer to BanUser(User, int, OpenChannelBanHandler) and UnbanUser(User, OpenChannelUnbanHandler)). |
handler | Callback handler. |
|
inlinestatic |
Creates new OpenChannel
with given information.
name | Name of channel. |
coverUrlOrImage | Cover URL or image file of channel. Pass String , SBFile or null only. This can be used as thumbnail of channel for instance. |
data | Custom data. |
customType | Custom type. |
operatorUserIds | Operator IDs (User IDs). Operators can ban or unban other participants (refer to BanUser(User, int, OpenChannelBanHandler) and UnbanUser(User, OpenChannelUnbanHandler)). |
handler | Callback handler. |
|
inline |
Creates a query instance to get the muted user (online and offline both) list of this channel.
|
inlinestatic |
Creates a query instance to get OpenChannel
s.
|
inline |
Creates a query instance to get the whole participant list (online only) of this channel.
|
inline |
Enters this channel. The current User
becomes a participant of this channel.
handler | Callback handler. |
|
inline |
Exits from this channel. The current User
is no longer a participant of this channel.
handler | Callback handler. |
|
inlinestatic |
Gets a OpenChannel
with given channel URL.
channelUrl | URL of channel. Refer to Url. |
handler | Callback handler. |
|
inlinestatic |
Gets a OpenChannel
with given channel URL.
channelUrl | URL of channel. Refer to Url. |
handler | Callback handler. |
|
inline |
Gets channel operators.
|
inline |
|
inline |
|
inline |
|
inline |
delegate void SendBird.OpenChannel.OpenChannelBanHandler | ( | SendBirdException | e | ) |
OpenChannelBan handler. This handler provides callback for BanUser(User, int, OpenChannelBanHandler) and BanUserWithUserId(string, int, OpenChannelBanHandler).
delegate void SendBird.OpenChannel.OpenChannelCreateHandler | ( | OpenChannel | channel, |
SendBirdException | e | ||
) |
OpenChannelCreate handler. This handler provides callback for CreateChannel(OpenChannelCreateHandler), CreateChannel(string, string, string, OpenChannelCreateHandler), CreateChannel(string, string, string, List, OpenChannelCreateHandler) and CreateChannelWithOperatorUserIds(string, string, string, List, OpenChannelCreateHandler).
delegate void SendBird.OpenChannel.OpenChannelEnterHandler | ( | SendBirdException | e | ) |
OpenChannelEnter handler. This handler provides callback for enter(OpenChannelEnterHandler).
delegate void SendBird.OpenChannel.OpenChannelExitHandler | ( | SendBirdException | e | ) |
OpenChannelExit handler. This handler provides callback for exit(OpenChannelExitHandler).
delegate void SendBird.OpenChannel.OpenChannelGetHandler | ( | OpenChannel | channel, |
SendBirdException | e | ||
) |
OpenChannelGet handler. This handler provides callback for GetChannel(string, OpenChannelGetHandler).
delegate void SendBird.OpenChannel.OpenChannelMuteHandler | ( | SendBirdException | e | ) |
OpenChannelMute handler. This handler provides callback for muteUser(User, OpenChannelMuteHandler) and muteUserWithUserId(string, OpenChannelMuteHandler).
delegate void SendBird.OpenChannel.OpenChannelRefreshHandler | ( | SendBirdException | e | ) |
OpenChannelRefresh handler. This handler provides callback for Refresh(OpenChannelRefreshHandler).
delegate void SendBird.OpenChannel.OpenChannelUnbanHandler | ( | SendBirdException | e | ) |
OpenChannelUnban handler. This handler provides callback for UnbanUser(User, OpenChannelUnbanHandler) and UnbanUserWithUserId(string, OpenChannelUnbanHandler).
delegate void SendBird.OpenChannel.OpenChannelUnmuteHandler | ( | SendBirdException | e | ) |
OpenChannelUnmute handler. This handler provides callback for UnmuteUser(User, OpenChannelUnmuteHandler) and UnmuteUserWithUserId(string, OpenChannelUnmuteHandler).
delegate void SendBird.OpenChannel.OpenChannelUpdateHandler | ( | OpenChannel | channel, |
SendBirdException | e | ||
) |
OpenChannelUpdate handler. This handler provides callback for UpdateChannel(String, object, string, OpenChannelUpdateHandler), UpdateChannel(String, object, string, List, OpenChannelUpdateHandler) and UpdateChannelWithOperatorUserIds(String, object, string, List, OpenChannelUpdateHandler).
|
inline |
Refreshes all the data of this channel.
handler | Callback handler. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Updates this channel. If null
is passed for each parameter, the current value of each is maintained.
name | New name. |
coverUrlOrImage | New cover URL or image file of channel. Pass String , SBFile or null only. |
data | New custom data. |
operatorUsers | New operators. |
handler | Callback handler. |
ClassCastException | If coverUrlOrImage is none of String , SBFile or null , exception occurs. |
|
inline |
Updates this channel. If null
is passed for each parameter, the current value of each is maintained.
name | New name. |
coverUrlOrImage | New cover URL or image file of channel. Pass String , SBFile or null only. |
data | New custom data. |
handler | Callback handler. |
|
inline |
Updates this channel. If null
is passed for each parameter, the current value of each is maintained.
name | New name. |
coverUrlOrImage | New cover URL or image file of channel. Pass String , SBFile or null only. |
data | New custom data. |
customType | New custom type. |
operatorUsers | New operators. |
handler | Callback handler. |
|
inline |
Updates this channel. If null
is passed for each parameter, the current value of each is maintained.
name | New name. |
coverUrlOrImage | New cover URL or image file of channel. Pass String , SBFile or null only. |
data | New custom data. |
operatorUserIds | New operator IDs. |
handler | Callback handler. |
|
inline |
Updates this channel. If null
is passed for each parameter, the current value of each is maintained.
name | New name. |
coverUrlOrImage | New cover URL or image file of channel. Pass String , SBFile or null only. |
data | New custom data. |
customType | New custom type. |
operatorUserIds | New operator IDs. |
handler | Callback handler. |
|
get |
Gets channel operators.
|
get |
Gets the total number of participants in this channel.