Package io.getstream.chat.java.models
Class ChannelType
- java.lang.Object
-
- io.getstream.chat.java.models.ChannelType
-
- Direct Known Subclasses:
ChannelType.ChannelTypeWithCommands,ChannelType.ChannelTypeWithStringCommands
public class ChannelType extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classChannelType.Actionstatic classChannelType.AutoModstatic classChannelType.AutoModBehaviorstatic classChannelType.BlocklistBehaviorstatic classChannelType.ChannelTypeCreateRequestDatastatic classChannelType.ChannelTypeCreateResponsestatic classChannelType.ChannelTypeDeleteRequeststatic classChannelType.ChannelTypeGetRequeststatic classChannelType.ChannelTypeGetResponsestatic classChannelType.ChannelTypeListRequeststatic classChannelType.ChannelTypeListResponsestatic classChannelType.ChannelTypeUpdateRequestDatastatic classChannelType.ChannelTypeUpdateResponsestatic classChannelType.ChannelTypeWithCommandsstatic classChannelType.ChannelTypeWithStringCommandsstatic classChannelType.PermissionRequestObjectstatic classChannelType.Policystatic classChannelType.Rightstatic classChannelType.Thresholdstatic classChannelType.ThresholdRequestObject
-
Constructor Summary
Constructors Constructor Description ChannelType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ChannelType.ChannelTypeCreateRequestData.ChannelTypeCreateRequestcreate()Creates an create requeststatic ChannelType.ChannelTypeDeleteRequestdelete(java.lang.String name)Creates a delete requeststatic ChannelType.ChannelTypeGetRequestget(java.lang.String name)Creates a get requeststatic ChannelType.ChannelTypeListRequestlist()Creates a list requeststatic ChannelType.ChannelTypeUpdateRequestData.ChannelTypeUpdateRequestupdate(java.lang.String name)Creates an update request
-
-
-
Method Detail
-
create
@NotNull public static ChannelType.ChannelTypeCreateRequestData.ChannelTypeCreateRequest create()
Creates an create request- Returns:
- the created request
-
get
@NotNull public static ChannelType.ChannelTypeGetRequest get(java.lang.String name)
Creates a get request- Parameters:
name- the channel type name- Returns:
- the created request
-
update
@NotNull public static ChannelType.ChannelTypeUpdateRequestData.ChannelTypeUpdateRequest update(@NotNull java.lang.String name)
Creates an update request- Parameters:
name- the name of the channel type to update- Returns:
- the created request
-
delete
@NotNull public static ChannelType.ChannelTypeDeleteRequest delete(java.lang.String name)
Creates a delete request- Parameters:
name- the channel type name- Returns:
- the created request
-
list
@NotNull public static ChannelType.ChannelTypeListRequest list() throws StreamException
Creates a list request- Returns:
- the channel types in a map
- Throws:
StreamException- when IO problem occurs or the stream API return an error
-
-