Package io.github.ma1uta.matrix.event
Class Unsigned<C extends EventContent>
- java.lang.Object
-
- io.github.ma1uta.matrix.event.Unsigned<C>
-
- Type Parameters:
C
- Type of the event content.
public class Unsigned<C extends EventContent> extends Object
UnsignedData.
-
-
Field Summary
Fields Modifier and Type Field Description private Long
age
The time in milliseconds that has elapsed since the event was sent.private List<Event>
inviteRoomState
This contains an array of StrippedState Events.private C
prevContent
Optional.private Event
redactedBecause
Optional.private String
transactionId
The client-supplied transaction ID, if the client being given the event is the same one which sent it.
-
Constructor Summary
Constructors Constructor Description Unsigned()
-
Method Summary
Modifier and Type Method Description Long
getAge()
List<Event>
getInviteRoomState()
C
getPrevContent()
Event
getRedactedBecause()
String
getTransactionId()
void
setAge(Long age)
void
setInviteRoomState(List<Event> inviteRoomState)
void
setPrevContent(C prevContent)
void
setRedactedBecause(Event redactedBecause)
void
setTransactionId(String transactionId)
-
-
-
Field Detail
-
age
private Long age
The time in milliseconds that has elapsed since the event was sent. This field is generated by the local homeserver, and may be incorrect if the local time on at least one of the two servers is out of sync, which can cause the age to either be negative or greater than it actually is.
-
redactedBecause
private Event redactedBecause
Optional. The event that redacted this event, if any.
-
transactionId
private String transactionId
The client-supplied transaction ID, if the client being given the event is the same one which sent it.
-
prevContent
private C extends EventContent prevContent
Optional. The previous content for this state. This will be present only for state events appearing in the timeline. If this is not a state event, or there is no previous content, this key will be missing.
-
-
Method Detail
-
getAge
public Long getAge()
-
setAge
public void setAge(Long age)
-
getRedactedBecause
public Event getRedactedBecause()
-
setRedactedBecause
public void setRedactedBecause(Event redactedBecause)
-
getTransactionId
public String getTransactionId()
-
setTransactionId
public void setTransactionId(String transactionId)
-
getPrevContent
public C getPrevContent()
-
setPrevContent
public void setPrevContent(C prevContent)
-
-