Class FilterData


  • public class FilterData
    extends Object
    JSON body request for filter api (create filter).
    • Field Detail

      • eventFields

        private List<String> eventFields
        List of event fields to include. If this list is absent then all fields are included. The entries may include '.' charaters to indicate sub-fields. So ['content.body'] will include the 'body' field of the 'content' object. A literal '.' character in a field name may be escaped using a '\'. A server may include more fields than were requested.
      • eventFormat

        private String eventFormat
        The format to use for events. 'client' will return the events in a format suitable for clients. 'federation' will return the raw event as receieved over federation. The default is 'client'. One of: ["client", "federation"]
      • presence

        private EventFilter presence
        The presence updates to include.
      • accountData

        private EventFilter accountData
        The user account data that isn't associated with rooms to include.
      • room

        private RoomFilter room
        Filters to be applied to room data.
    • Constructor Detail

      • FilterData

        public FilterData()
    • Method Detail

      • getEventFields

        public List<String> getEventFields()
      • setEventFields

        public void setEventFields​(List<String> eventFields)
      • getEventFormat

        public String getEventFormat()
      • setEventFormat

        public void setEventFormat​(String eventFormat)
      • setPresence

        public void setPresence​(EventFilter presence)
      • setAccountData

        public void setAccountData​(EventFilter accountData)
      • setRoom

        public void setRoom​(RoomFilter room)