Class PublishResponse

java.lang.Object
io.ably.lib.types.PublishResponse

public class PublishResponse
extends java.lang.Object
Contains the responses from a PublishResponse PublishResponse#publish request.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    java.lang.String channelId
    The channel name a message was successfully published to, or the channel name for which an error was returned.
    ErrorInfo error
    Describes the reason for which a message, or messages failed to publish to a channel as an ErrorInfo object.
    java.lang.String messageId
    The unique ID for a successfully published message.
  • Constructor Summary

    Constructors 
    Constructor Description
    PublishResponse()  
  • Method Summary

    Modifier and Type Method Description
    static HttpCore.BodyHandler<PublishResponse> getBulkPublishResponseHandler​(int statusCode)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • error

      public ErrorInfo error
      Describes the reason for which a message, or messages failed to publish to a channel as an ErrorInfo object.

      Spec: BPB2c

    • channelId

      @SerializedName("channel") public java.lang.String channelId
      The channel name a message was successfully published to, or the channel name for which an error was returned.

      Spec: BPB2a

    • messageId

      public java.lang.String messageId
      The unique ID for a successfully published message.

      Spec: BPB2b

  • Constructor Details

  • Method Details