Class Page<T>

  • Type Parameters:
    T - pagination item.

    public class Page<T>
    extends Object
    Pagination.
    • Field Detail

      • start

        private String start
        The token the pagination starts from. If dir=b this will be the token supplied in from.
      • end

        private String end
        The token the pagination ends at. If dir=b this token should be used again to request even earlier events.
      • chunk

        private List<T> chunk
        A list of room events.
      • state

        private List<Event> state
        A list of state events relevant to showing the chunk. For example, if lazy_load_members is enabled in the filter then this may contain the membership events for the senders of events in the chunk.

        Unless include_redundant_members is true, the server may remove membership events which would have already been sent to the client in prior calls to this endpoint, assuming the membership of those members has not changed.

    • Constructor Detail

      • Page

        public Page()
    • Method Detail

      • getStart

        public String getStart()
      • setStart

        public void setStart​(String start)
      • getEnd

        public String getEnd()
      • setEnd

        public void setEnd​(String end)
      • getChunk

        public List<T> getChunk()
      • setChunk

        public void setChunk​(List<T> chunk)
      • setState

        public void setState​(List<Event> state)