Class RoomFilter
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.filter.RoomFilter
-
public class RoomFilter extends Object
Room filter.
-
-
Field Summary
Fields Modifier and Type Field Description private RoomEventFilter
accountData
The per user account data to include for rooms.private RoomEventFilter
ephemeral
The events that aren't recorded in the room history, e.g. typing and receipts, to include for rooms.private Boolean
includeLeave
Include rooms that the user has left in the sync, default false.private List<String>
notRooms
A list of room IDs to exclude.private List<String>
rooms
A list of room IDs to include.private RoomEventFilter
state
The state events to include for rooms.private RoomEventFilter
timeline
The message and state update events to include for rooms.
-
Constructor Summary
Constructors Constructor Description RoomFilter()
-
Method Summary
Modifier and Type Method Description RoomEventFilter
getAccountData()
RoomEventFilter
getEphemeral()
Boolean
getIncludeLeave()
List<String>
getNotRooms()
List<String>
getRooms()
RoomEventFilter
getState()
RoomEventFilter
getTimeline()
void
setAccountData(RoomEventFilter accountData)
void
setEphemeral(RoomEventFilter ephemeral)
void
setIncludeLeave(Boolean includeLeave)
void
setNotRooms(List<String> notRooms)
void
setRooms(List<String> rooms)
void
setState(RoomEventFilter state)
void
setTimeline(RoomEventFilter timeline)
-
-
-
Field Detail
-
notRooms
private List<String> notRooms
A list of room IDs to exclude. If this list is absent then no rooms are excluded. A matching room will be excluded even if it is listed in the 'rooms' filter. This filter is applied before the filters in ephemeral, state, timeline or account_data.
-
rooms
private List<String> rooms
A list of room IDs to include. If this list is absent then all rooms are included. This filter is applied before the filters in ephemeral, state, timeline or account_data.
-
ephemeral
private RoomEventFilter ephemeral
The events that aren't recorded in the room history, e.g. typing and receipts, to include for rooms.
-
includeLeave
private Boolean includeLeave
Include rooms that the user has left in the sync, default false.
-
state
private RoomEventFilter state
The state events to include for rooms.
-
timeline
private RoomEventFilter timeline
The message and state update events to include for rooms.
-
accountData
private RoomEventFilter accountData
The per user account data to include for rooms.
-
-
Method Detail
-
getEphemeral
public RoomEventFilter getEphemeral()
-
setEphemeral
public void setEphemeral(RoomEventFilter ephemeral)
-
getIncludeLeave
public Boolean getIncludeLeave()
-
setIncludeLeave
public void setIncludeLeave(Boolean includeLeave)
-
getState
public RoomEventFilter getState()
-
setState
public void setState(RoomEventFilter state)
-
getTimeline
public RoomEventFilter getTimeline()
-
setTimeline
public void setTimeline(RoomEventFilter timeline)
-
getAccountData
public RoomEventFilter getAccountData()
-
setAccountData
public void setAccountData(RoomEventFilter accountData)
-
-