Class InviteV1Request
- java.lang.Object
-
- io.github.ma1uta.matrix.server.model.federation.InviteV1Request
-
public class InviteV1Request extends Object
V1 Invite JSON request.
-
-
Field Summary
Fields Modifier and Type Field Description private RoomMemberContent
content
Required.private String
origin
Required.private Long
originServerTs
Required.private String
sender
Required.private String
stateKey
Required.private String
type
Required.private Unsigned
unsigned
Information included alongside the event that is not signed.
-
Constructor Summary
Constructors Constructor Description InviteV1Request()
-
Method Summary
Modifier and Type Method Description RoomMemberContent
getContent()
String
getOrigin()
Long
getOriginServerTs()
String
getSender()
String
getStateKey()
String
getType()
Unsigned
getUnsigned()
void
setContent(RoomMemberContent content)
void
setOrigin(String origin)
void
setOriginServerTs(Long originServerTs)
void
setSender(String sender)
void
setStateKey(String stateKey)
void
setType(String type)
void
setUnsigned(Unsigned unsigned)
-
-
-
Field Detail
-
sender
private String sender
Required. The matrix ID of the user who sent the original m.room.third_party_invite.
-
origin
private String origin
Required. The name of the inviting homeserver.
-
originServerTs
private Long originServerTs
Required. A timestamp added by the inviting homeserver.
-
type
private String type
Required. The value m.room.member.
-
stateKey
private String stateKey
Required. The user ID of the invited member.
-
content
private RoomMemberContent content
Required. The content of the event, matching what is available in the Client-Server API. Must include a membership of invite.
-
unsigned
private Unsigned unsigned
Information included alongside the event that is not signed. May include more than what is listed here.
-
-
Method Detail
-
getSender
public String getSender()
-
setSender
public void setSender(String sender)
-
getOrigin
public String getOrigin()
-
setOrigin
public void setOrigin(String origin)
-
getOriginServerTs
public Long getOriginServerTs()
-
setOriginServerTs
public void setOriginServerTs(Long originServerTs)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getStateKey
public String getStateKey()
-
setStateKey
public void setStateKey(String stateKey)
-
getContent
public RoomMemberContent getContent()
-
setContent
public void setContent(RoomMemberContent content)
-
getUnsigned
public Unsigned getUnsigned()
-
setUnsigned
public void setUnsigned(Unsigned unsigned)
-
-