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 class
RoomEventsCriteria.Key
The keys to search.static class
RoomEventsCriteria.Order
Order.
-
Field Summary
Fields Modifier and Type Field Description private EventContext
eventContext
Configures whether any context for the events returned are included in the response.private Filter
filter
This takes a filter.private Groupings
groupings
Requests that the server partitions the result set based on the provided list of keys.private Boolean
includeState
Requests the server return the current state for each room returned.private List<String>
keys
The keys to search.private String
orderBy
The order in which to search for results.private String
searchTerm
Required.
-
Constructor Summary
Constructors Constructor Description RoomEventsCriteria()
-
Method Summary
Modifier and Type Method Description EventContext
getEventContext()
Filter
getFilter()
Groupings
getGroupings()
Boolean
getIncludeState()
List<String>
getKeys()
String
getOrderBy()
String
getSearchTerm()
void
setEventContext(EventContext eventContext)
void
setFilter(Filter filter)
void
setGroupings(Groupings groupings)
void
setIncludeState(Boolean includeState)
void
setKeys(List<String> keys)
void
setOrderBy(String orderBy)
void
setSearchTerm(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)
-
-