Class FilterData
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.filter.FilterData
-
public class FilterData extends Object
JSON body request for filter api (create filter).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FilterData.EventFormat
Event formats.
-
Field Summary
Fields Modifier and Type Field Description private EventFilter
accountData
The user account data that isn't associated with rooms to include.private List<String>
eventFields
List of event fields to include.private String
eventFormat
The format to use for events.private EventFilter
presence
The presence updates to include.private RoomFilter
room
Filters to be applied to room data.
-
Constructor Summary
Constructors Constructor Description FilterData()
-
Method Summary
Modifier and Type Method Description EventFilter
getAccountData()
List<String>
getEventFields()
String
getEventFormat()
EventFilter
getPresence()
RoomFilter
getRoom()
void
setAccountData(EventFilter accountData)
void
setEventFields(List<String> eventFields)
void
setEventFormat(String eventFormat)
void
setPresence(EventFilter presence)
void
setRoom(RoomFilter room)
-
-
-
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.
-
-
Method Detail
-
getEventFormat
public String getEventFormat()
-
setEventFormat
public void setEventFormat(String eventFormat)
-
getPresence
public EventFilter getPresence()
-
setPresence
public void setPresence(EventFilter presence)
-
getAccountData
public EventFilter getAccountData()
-
setAccountData
public void setAccountData(EventFilter accountData)
-
getRoom
public RoomFilter getRoom()
-
setRoom
public void setRoom(RoomFilter room)
-
-