Class Channel


  • public class Channel
    extends java.lang.Object
    • Constructor Detail

      • Channel

        public Channel()
    • Method Detail

      • getAdditionalFields

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalFields()
      • setAdditionalField

        public void setAdditionalField​(java.lang.String name,
                                       java.lang.Object value)
      • getOrCreate

        @NotNull
        public static @NotNull Channel.ChannelGetRequestData.ChannelGetRequest getOrCreate​(@NotNull
                                                                                           @NotNull java.lang.String type,
                                                                                           @NotNull
                                                                                           @NotNull java.lang.String id)
        Creates a get or create request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • getOrCreate

        @NotNull
        public static @NotNull Channel.ChannelGetRequestData.ChannelGetRequest getOrCreate​(@NotNull
                                                                                           @NotNull java.lang.String type)
        Creates a get or create request
        Parameters:
        type - the channel type
        Returns:
        the created request
      • update

        @NotNull
        public static @NotNull Channel.ChannelUpdateRequestData.ChannelUpdateRequest update​(@NotNull
                                                                                            @NotNull java.lang.String type,
                                                                                            @NotNull
                                                                                            @NotNull java.lang.String id)
        Creates an update request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • delete

        @NotNull
        public static @NotNull Channel.ChannelDeleteRequest delete​(@NotNull
                                                                   @NotNull java.lang.String type,
                                                                   @NotNull
                                                                   @NotNull java.lang.String id)
        Creates a delete request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • truncate

        @NotNull
        public static @NotNull Channel.ChannelTruncateRequestData.ChannelTruncateRequest truncate​(@NotNull
                                                                                                  @NotNull java.lang.String type,
                                                                                                  @NotNull
                                                                                                  @NotNull java.lang.String id)
        Creates a truncate request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • exportStatus

        @NotNull
        public static @NotNull Channel.ChannelExportStatusRequest exportStatus​(java.lang.String taskId)
        Creates an export status request
        Parameters:
        taskId - the id of the export task
        Returns:
        the created request
      • hide

        @NotNull
        public static @NotNull Channel.ChannelHideRequestData.ChannelHideRequest hide​(@NotNull
                                                                                      @NotNull java.lang.String type,
                                                                                      @NotNull
                                                                                      @NotNull java.lang.String id)
        Creates a hide request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • markRead

        @NotNull
        public static @NotNull Channel.ChannelMarkReadRequestData.ChannelMarkReadRequest markRead​(@NotNull
                                                                                                  @NotNull java.lang.String type,
                                                                                                  @NotNull
                                                                                                  @NotNull java.lang.String id)
        Creates a mark read request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • show

        @NotNull
        public static @NotNull Channel.ChannelShowRequestData.ChannelShowRequest show​(@NotNull
                                                                                      @NotNull java.lang.String type,
                                                                                      @NotNull
                                                                                      @NotNull java.lang.String id)
        Creates a show request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • assignRoles

        @NotNull
        public static @NotNull Channel.AssignRoleRequestData.AssignRoleRequest assignRoles​(@NotNull
                                                                                           @NotNull java.lang.String type,
                                                                                           @NotNull
                                                                                           @NotNull java.lang.String id)
        Creates an assign role request
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • updateMemberPartial

        @NotNull
        public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest updateMemberPartial​(@NotNull
                                                                                                                                   @NotNull java.lang.String type,
                                                                                                                                   @NotNull
                                                                                                                                   @NotNull java.lang.String id,
                                                                                                                                   @NotNull
                                                                                                                                   @NotNull java.lang.String userId)
        Creates a update member partial request
        Parameters:
        type - the channel type
        id - the channel id
        userId - the user id
        Returns:
        the created request
      • archive

        @NotNull
        public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest archive​(@NotNull
                                                                                                                       @NotNull java.lang.String type,
                                                                                                                       @NotNull
                                                                                                                       @NotNull java.lang.String id,
                                                                                                                       @NotNull
                                                                                                                       @NotNull java.lang.String userId)
        Creates a archive channel request
        Parameters:
        type - the channel type
        id - the channel id
        userId - the user id
        Returns:
        the created request
      • unarchive

        @NotNull
        public static @NotNull Channel.ChannelMemberPartialUpdateRequestData.ChannelMemberPartialUpdateRequest unarchive​(@NotNull
                                                                                                                         @NotNull java.lang.String type,
                                                                                                                         @NotNull
                                                                                                                         @NotNull java.lang.String id,
                                                                                                                         @NotNull
                                                                                                                         @NotNull java.lang.String userId)
        Creates a unarchive channel request
        Parameters:
        type - the channel type
        id - the channel id
        userId - the user id
        Returns:
        the created request
      • getId

        @NotNull
        public @NotNull java.lang.String getId()
      • getType

        @NotNull
        public @NotNull java.lang.String getType()
      • getCId

        @NotNull
        public @NotNull java.lang.String getCId()
      • getTeam

        @NotNull
        public @NotNull java.lang.String getTeam()
      • getCreatedBy

        @Nullable
        public @Nullable User getCreatedBy()
      • getFrozen

        @NotNull
        public @NotNull java.lang.Boolean getFrozen()
      • getMemberCount

        @NotNull
        public @NotNull java.lang.Integer getMemberCount()
      • getMessages

        @Nullable
        public @Nullable java.util.List<Message> getMessages()
      • getMessageCount

        @Nullable
        public @Nullable java.lang.Integer getMessageCount()
      • getCreatedAt

        @NotNull
        public @NotNull java.util.Date getCreatedAt()
      • getUpdatedAt

        @NotNull
        public @NotNull java.util.Date getUpdatedAt()
      • getDeletedAt

        @Nullable
        public @Nullable java.util.Date getDeletedAt()
      • getLastMessageAt

        @Nullable
        public @Nullable java.util.Date getLastMessageAt()
      • getTruncatedById

        @Nullable
        public @Nullable java.lang.String getTruncatedById()
      • getTruncatedBy

        @Nullable
        public @Nullable User getTruncatedBy()
      • setId

        public void setId​(@NotNull
                          @NotNull java.lang.String id)
      • setType

        public void setType​(@NotNull
                            @NotNull java.lang.String type)
      • setCId

        public void setCId​(@NotNull
                           @NotNull java.lang.String cId)
      • setTeam

        public void setTeam​(@NotNull
                            @NotNull java.lang.String team)
      • setCreatedBy

        public void setCreatedBy​(@Nullable
                                 @Nullable User createdBy)
      • setFrozen

        public void setFrozen​(@NotNull
                              @NotNull java.lang.Boolean frozen)
      • setMemberCount

        public void setMemberCount​(@NotNull
                                   @NotNull java.lang.Integer memberCount)
      • setMembers

        public void setMembers​(@Nullable
                               @Nullable java.util.List<Channel.ChannelMember> members)
      • setMessages

        public void setMessages​(@Nullable
                                @Nullable java.util.List<Message> messages)
      • setMessageCount

        public void setMessageCount​(@Nullable
                                    @Nullable java.lang.Integer messageCount)
      • setRead

        public void setRead​(@Nullable
                            @Nullable java.util.List<Channel.ChannelRead> read)
      • setCreatedAt

        public void setCreatedAt​(@NotNull
                                 @NotNull java.util.Date createdAt)
      • setUpdatedAt

        public void setUpdatedAt​(@NotNull
                                 @NotNull java.util.Date updatedAt)
      • setDeletedAt

        public void setDeletedAt​(@Nullable
                                 @Nullable java.util.Date deletedAt)
      • setLastMessageAt

        public void setLastMessageAt​(@Nullable
                                     @Nullable java.util.Date lastMessageAt)
      • setTruncatedById

        public void setTruncatedById​(@Nullable
                                     @Nullable java.lang.String truncatedById)
      • setTruncatedBy

        public void setTruncatedBy​(@Nullable
                                   @Nullable User truncatedBy)
      • setAdditionalFields

        public void setAdditionalFields​(@NotNull
                                        @NotNull java.util.Map<java.lang.String,​java.lang.Object> additionalFields)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object