Class Lobby

java.lang.Object
org.ngengine.network.Lobby
All Implemented Interfaces:
Serializable, Cloneable
Direct Known Subclasses:
LocalLobby

public class Lobby extends Object implements Cloneable, Serializable
See Also:
  • Field Details

    • id

      protected final String id
    • key

      protected final String key
    • roomRawData

      protected String roomRawData
    • data

      protected final Map<String,String> data
    • expiration

      protected final Instant expiration
  • Method Details

    • getExpiration

      public Instant getExpiration()
    • getId

      public String getId()
    • isOwnedByLocalPeer

      public boolean isOwnedByLocalPeer()
    • getKey

      public org.ngengine.nostr4j.keypair.NostrPrivateKey getKey(String passphrase) throws org.ngengine.nostr4j.nip49.Nip49FailedException
      Throws:
      org.ngengine.nostr4j.nip49.Nip49FailedException
    • getKey

      public org.ngengine.nostr4j.keypair.NostrPrivateKey getKey()
    • matches

      public boolean matches(String[] words)
    • clone

      public Lobby clone()
      Overrides:
      clone in class Object
    • setData

      protected void setData(String key, String value)
    • getData

      public String getData(String key)
    • getDataOrDefault

      public String getDataOrDefault(String key, String defaultValue)
    • getDataKeys

      public Collection<String> getDataKeys()
    • getData

      protected Map<String,String> getData()
    • getRawData

      protected String getRawData()
    • setRawData

      protected void setRawData(String rawData)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isLocked

      public boolean isLocked()