Class JoinMessage

java.lang.Object
dev.onvoid.webrtc.examples.web.model.SignalingMessage
dev.onvoid.webrtc.examples.web.model.JoinMessage

public class JoinMessage extends SignalingMessage
Represents a join message used in WebRTC signaling. This class is used when a peer wants to join a room or session.
Author:
Alex Andres
  • Constructor Details

    • JoinMessage

      public JoinMessage()
      Default constructor required for JSON deserialization.
    • JoinMessage

      public JoinMessage(String from, String room, String userName)
      Creates a new JoinMessage with the specified sender, room, and user information.
      Parameters:
      from - the sender ID.
      room - the room to join.
      userName - the user's name.
  • Method Details

    • getData

      public JoinMessage.JoinData getData()
      Gets the join data.
      Returns:
      the join data.
    • setData

      public void setData(JoinMessage.JoinData data)
      Sets the join data.
      Parameters:
      data - the join data.