Class MessageVersion

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

public class MessageVersion extends Object
Contains the details regarding the current version of the message - including when it was updated and by whom.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The client ID of the client that updated the message to this version.
    The description provided by the client that updated the message to this version.
    A map of string key-value pairs that may contain metadata associated with the operation to update the message to this version.
    A unique identifier for the version of the message, lexicographically-comparable with other versions (that share the same `Message.serial`).
    long
    The timestamp of the message version.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    MessageVersion(String serial, Long timestamp)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
     

    Methods inherited from class java.lang.Object

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

    • serial

      public String serial
      A unique identifier for the version of the message, lexicographically-comparable with other versions (that share the same `Message.serial`). Will differ from the `Message.serial` only if the message has been updated or deleted.
    • timestamp

      public long timestamp
      The timestamp of the message version.

      If the `Message.action` is `message.create`, this will equal the `Message.timestamp`.

    • clientId

      public String clientId
      The client ID of the client that updated the message to this version.
    • description

      public String description
      The description provided by the client that updated the message to this version.
    • metadata

      public Map<String,String> metadata
      A map of string key-value pairs that may contain metadata associated with the operation to update the message to this version.
  • Constructor Details

    • MessageVersion

      public MessageVersion()
    • MessageVersion

      public MessageVersion(String serial, Long timestamp)
  • Method Details