Class LinkRequestImpl

java.lang.Object
org.geysermc.floodgate.core.link.LinkRequestImpl
All Implemented Interfaces:
org.geysermc.floodgate.api.link.LinkRequest

public final class LinkRequestImpl extends Object implements org.geysermc.floodgate.api.link.LinkRequest
  • Constructor Details

    • LinkRequestImpl

      public LinkRequestImpl(String javaUsername, UUID javaUniqueId, String linkCode, String bedrockUsername)
    • LinkRequestImpl

      public LinkRequestImpl(String javaUsername, UUID javaUniqueId, String linkCode, String bedrockUsername, long requestTime)
  • Method Details

    • isExpired

      public boolean isExpired(long linkTimeout)
      Specified by:
      isExpired in interface org.geysermc.floodgate.api.link.LinkRequest
    • getJavaUsername

      public String getJavaUsername()
      Specified by:
      getJavaUsername in interface org.geysermc.floodgate.api.link.LinkRequest
    • getJavaUniqueId

      public UUID getJavaUniqueId()
      Specified by:
      getJavaUniqueId in interface org.geysermc.floodgate.api.link.LinkRequest
    • getLinkCode

      public String getLinkCode()
      Specified by:
      getLinkCode in interface org.geysermc.floodgate.api.link.LinkRequest
    • getBedrockUsername

      public String getBedrockUsername()
      Specified by:
      getBedrockUsername in interface org.geysermc.floodgate.api.link.LinkRequest
    • getRequestTime

      public long getRequestTime()
      Specified by:
      getRequestTime in interface org.geysermc.floodgate.api.link.LinkRequest