Class InviteV2Request
- java.lang.Object
-
- io.github.ma1uta.matrix.server.model.federation.InviteV2Request
-
public class InviteV2Request extends Object
V2 Invite JSON request.
-
-
Field Summary
Fields Modifier and Type Field Description private InviteEvent
event
Required.private Event
inviteRoomState
An optional list of simplified events to help the receiver of the invite identify the room.private String
roomVersion
Required.
-
Constructor Summary
Constructors Constructor Description InviteV2Request()
-
Method Summary
Modifier and Type Method Description InviteEvent
getEvent()
Event
getInviteRoomState()
String
getRoomVersion()
void
setEvent(InviteEvent event)
void
setInviteRoomState(Event inviteRoomState)
void
setRoomVersion(String roomVersion)
-
-
-
Field Detail
-
roomVersion
private String roomVersion
Required. The version of the room where the user is being invited to.
-
event
private InviteEvent event
Required. An invite event. Note that events have a different format depending on the room version - check the room version specification for precise event formats.
-
inviteRoomState
private Event inviteRoomState
An optional list of simplified events to help the receiver of the invite identify the room. The recommended events to include are the join rules, canonical alias, avatar, and name of the room.
-
-
Method Detail
-
getRoomVersion
public String getRoomVersion()
-
setRoomVersion
public void setRoomVersion(String roomVersion)
-
getEvent
public InviteEvent getEvent()
-
setEvent
public void setEvent(InviteEvent event)
-
getInviteRoomState
public Event getInviteRoomState()
-
setInviteRoomState
public void setInviteRoomState(Event inviteRoomState)
-
-