Class Draft


  • public class Draft
    extends java.lang.Object
    Represents draft message functionality in Stream Chat.
    • Constructor Detail

      • Draft

        public Draft()
    • Method Detail

      • createDraft

        @NotNull
        public static Draft.CreateDraftRequestData.CreateDraftRequest createDraft​(@NotNull
                                                                                  @NotNull java.lang.String type,
                                                                                  @NotNull
                                                                                  @NotNull java.lang.String id)
        Creates a draft message in a channel
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • deleteDraft

        @NotNull
        public static @NotNull Draft.DeleteDraftRequest deleteDraft​(@NotNull
                                                                    @NotNull java.lang.String type,
                                                                    @NotNull
                                                                    @NotNull java.lang.String id)
        Deletes a draft message from a channel
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • getDraft

        @NotNull
        public static @NotNull Draft.GetDraftRequest getDraft​(@NotNull
                                                              @NotNull java.lang.String type,
                                                              @NotNull
                                                              @NotNull java.lang.String id)
        Gets a draft message from a channel
        Parameters:
        type - the channel type
        id - the channel id
        Returns:
        the created request
      • 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