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