Class GetMessagesModel

java.lang.Object
io.cryptolens.models.RequestModel
io.cryptolens.models.GetMessagesModel

public class GetMessagesModel extends RequestModel
  • Field Details

    • Channel

      public String Channel
      Specifies the channel, whose messages you would like to retrieve. If not set, messages from all channels will be returned.
    • Time

      public long Time
      Allows you to retrieve only those messages that were created after a certain Time (strictly greater than), eg. the last time you contacted the server. The format is unix timestamp. If no time is specified, all messages will be returned.
  • Constructor Details

    • GetMessagesModel

      public GetMessagesModel()
    • GetMessagesModel

      public GetMessagesModel(String channel)
    • GetMessagesModel

      public GetMessagesModel(String channel, long time)
    • GetMessagesModel

      public GetMessagesModel(long time)