Class Result
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.search.Result
-
public class Result extends Object
Search result.
-
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
Modifier and Type Method Description EventContextResponse
getContext()
Long
getRank()
Event
getResult()
void
setContext(EventContextResponse context)
void
setRank(Long rank)
void
setResult(Event result)
-
-
-
Field Detail
-
rank
private Long rank
A number that describes how closely this result matches the search. Higher is closer.
-
result
private Event result
The event that matched.
-
context
private EventContextResponse context
Context for result, if requested.
-
-
Method Detail
-
getRank
public Long getRank()
-
setRank
public void setRank(Long rank)
-
getResult
public Event getResult()
-
setResult
public void setResult(Event result)
-
getContext
public EventContextResponse getContext()
-
setContext
public void setContext(EventContextResponse context)
-
-