public final class OpenChannelParams
extends java.lang.Object
Constructor and Description |
---|
OpenChannelParams()
OpenChannelParams constructor.
|
OpenChannelParams(java.lang.String userId)
OpenChannelParams constructor.
|
Modifier and Type | Method and Description |
---|---|
OpenChannelParams |
addOperator(User operator)
Deprecated.
As of 3.0.152, replaced by
setOperators(List) |
OpenChannelParams |
addOperatorId(java.lang.String operatorUserId)
Deprecated.
As of 3.0.152, replaced by
setOperatorUserIds(List) |
OpenChannelParams |
addOperatorIds(java.util.List<java.lang.String> operatorUserIds)
Deprecated.
As of 3.0.152, replaced by
setOperatorUserIds(List) |
OpenChannelParams |
addOperators(java.util.List<User> operators)
Deprecated.
As of 3.0.152, replaced by
setOperators(List) |
static OpenChannelParams |
clone(OpenChannelParams params)
Clones and returns a new instance of given OpenChannelParams.
|
OpenChannelParams |
setChannelUrl(java.lang.String channelUrl)
Sets channel url.
|
OpenChannelParams |
setCoverImage(java.io.File coverImageFile)
Sets cover image file.
|
OpenChannelParams |
setCoverUrl(java.lang.String coverImageUrl)
Sets cover url.
|
OpenChannelParams |
setCustomType(java.lang.String customType)
Sets custom type.
|
OpenChannelParams |
setData(java.lang.String data)
Sets data.
|
OpenChannelParams |
setName(java.lang.String name)
Sets channel name.
|
OpenChannelParams |
setOperators(java.util.List<User> operators)
Sets operators.
|
OpenChannelParams |
setOperatorUserIds(java.util.List<java.lang.String> operatorUserIds)
Sets operator user ids.
|
java.lang.String |
toString() |
public OpenChannelParams()
public OpenChannelParams(java.lang.String userId)
userId
- user id to be operator. If you want to set operators, use
setOperators(List)
, setOperatorUserIds(List)
public OpenChannelParams setChannelUrl(java.lang.String channelUrl)
channelUrl
- channel urlOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
public OpenChannelParams setName(java.lang.String name)
name
- channel nameOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
public OpenChannelParams setCoverUrl(java.lang.String coverImageUrl)
coverImageUrl
- cover image urlOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
public OpenChannelParams setCoverImage(java.io.File coverImageFile)
coverImageFile
- cover image fileOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
public OpenChannelParams setData(java.lang.String data)
data
- dataOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
public OpenChannelParams setCustomType(java.lang.String customType)
customType
- custom typeOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
@Deprecated public OpenChannelParams addOperator(User operator)
setOperators(List)
operator
- operatorOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
@Deprecated public OpenChannelParams addOperators(java.util.List<User> operators)
setOperators(List)
operators
- operatorsOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
@Deprecated public OpenChannelParams addOperatorId(java.lang.String operatorUserId)
setOperatorUserIds(List)
operatorUserId
- operator user idOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
@Deprecated public OpenChannelParams addOperatorIds(java.util.List<java.lang.String> operatorUserIds)
setOperatorUserIds(List)
operatorUserIds
- operator user id listOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
public OpenChannelParams setOperators(java.util.List<User> operators)
operators
- operatorsOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
public OpenChannelParams setOperatorUserIds(java.util.List<java.lang.String> operatorUserIds)
operatorUserIds
- operatorUserIdsOpenChannel.createChannel(OpenChannelParams, OpenChannel.OpenChannelCreateHandler)
,
OpenChannel.updateChannel(OpenChannelParams, OpenChannel.OpenChannelUpdateHandler)
public static OpenChannelParams clone(OpenChannelParams params)
params
- OpenChannelParams to clonepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.