Class ClajRoom<T>

java.lang.Object
com.xpdustry.claj.api.ClajRoom<T>

public class ClajRoom<T> extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Current number of client in the room.
    boolean
    Whether the room needs a password to join, or not.
    boolean
    Note that for privacy, the server will never notify this.
    The link to the room.
    int
    Maximum number of CLaJ client allowed in this room.
    final long
     
    Only presents if the room is public and the server has retrieved his state.
    com.xpdustry.claj.common.status.ClajType
    Room implementation type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClajRoom(long roomId)
     
    ClajRoom(long roomId, boolean isPublic, boolean isProtected, T state, ClajLink link, com.xpdustry.claj.common.status.ClajType type, int clients, int maxClients)
     
  • Method Summary

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • roomId

      public final long roomId
    • isPublic

      public boolean isPublic
      Note that for privacy, the server will never notify this.
    • isProtected

      public boolean isProtected
      Whether the room needs a password to join, or not.
    • state

      public T state
      Only presents if the room is public and the server has retrieved his state.
    • type

      public com.xpdustry.claj.common.status.ClajType type
      Room implementation type.
    • clients

      public int clients
      Current number of client in the room.
    • maxClients

      public int maxClients
      Maximum number of CLaJ client allowed in this room. 0 means no limit.
  • Constructor Details

    • ClajRoom

      public ClajRoom(long roomId)
    • ClajRoom

      public ClajRoom(long roomId, boolean isPublic, boolean isProtected, T state, ClajLink link, com.xpdustry.claj.common.status.ClajType type, int clients, int maxClients)