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 class
ChannelType.Action
static class
ChannelType.AutoMod
static class
ChannelType.AutoModBehavior
static class
ChannelType.BlocklistBehavior
static class
ChannelType.ChannelTypeCreateRequestData
static class
ChannelType.ChannelTypeCreateResponse
static class
ChannelType.ChannelTypeDeleteRequest
static class
ChannelType.ChannelTypeGetRequest
static class
ChannelType.ChannelTypeGetResponse
static class
ChannelType.ChannelTypeListRequest
static class
ChannelType.ChannelTypeListResponse
static class
ChannelType.ChannelTypeUpdateRequestData
static class
ChannelType.ChannelTypeUpdateResponse
static class
ChannelType.ChannelTypeWithCommands
static class
ChannelType.ChannelTypeWithStringCommands
static class
ChannelType.PermissionRequestObject
static class
ChannelType.Policy
static class
ChannelType.Right
static class
ChannelType.Threshold
static class
ChannelType.ThresholdRequestObject
-
Constructor Summary
Constructors Constructor Description ChannelType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static @NotNull ChannelType.ChannelTypeCreateRequestData.ChannelTypeCreateRequest
create()
Creates an create requeststatic @NotNull ChannelType.ChannelTypeDeleteRequest
delete(java.lang.String name)
Creates a delete requeststatic @NotNull ChannelType.ChannelTypeGetRequest
get(java.lang.String name)
Creates a get requeststatic @NotNull ChannelType.ChannelTypeListRequest
list()
Creates a list requeststatic @NotNull ChannelType.ChannelTypeUpdateRequestData.ChannelTypeUpdateRequest
update(@NotNull java.lang.String name)
Creates an update request
-
-
-
Method Detail
-
create
@NotNull public static @NotNull ChannelType.ChannelTypeCreateRequestData.ChannelTypeCreateRequest create()
Creates an create request- Returns:
- the created request
-
get
@NotNull public static @NotNull 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 @NotNull ChannelType.ChannelTypeUpdateRequestData.ChannelTypeUpdateRequest update(@NotNull @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 @NotNull 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 @NotNull 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
-
-