Class InviteV2Request


  • public class InviteV2Request
    extends Object
    V2 Invite JSON request.
    • 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.
    • Constructor Detail

      • InviteV2Request

        public InviteV2Request()
    • Method Detail

      • getRoomVersion

        public String getRoomVersion()
      • setRoomVersion

        public void setRoomVersion​(String roomVersion)
      • setEvent

        public void setEvent​(InviteEvent event)
      • getInviteRoomState

        public Event getInviteRoomState()
      • setInviteRoomState

        public void setInviteRoomState​(Event inviteRoomState)