Class RoomEventsCriteria
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.search.RoomEventsCriteria
-
public class RoomEventsCriteria extends Object
Room events.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRoomEventsCriteria.KeyThe keys to search.static classRoomEventsCriteria.OrderOrder.
-
Field Summary
Fields Modifier and Type Field Description private EventContexteventContextConfigures whether any context for the events returned are included in the response.private FilterfilterThis takes a filter.private GroupingsgroupingsRequests that the server partitions the result set based on the provided list of keys.private BooleanincludeStateRequests the server return the current state for each room returned.private List<String>keysThe keys to search.private StringorderByThe order in which to search for results.private StringsearchTermRequired.
-
Constructor Summary
Constructors Constructor Description RoomEventsCriteria()
-
Method Summary
Modifier and Type Method Description EventContextgetEventContext()FiltergetFilter()GroupingsgetGroupings()BooleangetIncludeState()List<String>getKeys()StringgetOrderBy()StringgetSearchTerm()voidsetEventContext(EventContext eventContext)voidsetFilter(Filter filter)voidsetGroupings(Groupings groupings)voidsetIncludeState(Boolean includeState)voidsetKeys(List<String> keys)voidsetOrderBy(String orderBy)voidsetSearchTerm(String searchTerm)
-
-
-
Field Detail
-
searchTerm
private String searchTerm
Required. The string to search events for.
-
keys
private List<String> keys
The keys to search. Defaults to all. One of: ["content.body", "content.name", "content.topic"]
-
filter
private Filter filter
This takes a filter.
-
orderBy
private String orderBy
The order in which to search for results. One of: ["recent", "rank"]
-
eventContext
private EventContext eventContext
Configures whether any context for the events returned are included in the response.
-
includeState
private Boolean includeState
Requests the server return the current state for each room returned.
-
groupings
private Groupings groupings
Requests that the server partitions the result set based on the provided list of keys.
-
-
Method Detail
-
getSearchTerm
public String getSearchTerm()
-
setSearchTerm
public void setSearchTerm(String searchTerm)
-
getFilter
public Filter getFilter()
-
setFilter
public void setFilter(Filter filter)
-
getOrderBy
public String getOrderBy()
-
setOrderBy
public void setOrderBy(String orderBy)
-
getEventContext
public EventContext getEventContext()
-
setEventContext
public void setEventContext(EventContext eventContext)
-
getIncludeState
public Boolean getIncludeState()
-
setIncludeState
public void setIncludeState(Boolean includeState)
-
getGroupings
public Groupings getGroupings()
-
setGroupings
public void setGroupings(Groupings groupings)
-
-