public class ServrLinkAPI
extends java.lang.Object
Constructor and Description |
---|
ServrLinkAPI(java.lang.String baseRegistryUrl) |
Modifier and Type | Method and Description |
---|---|
RetrievedID |
getDiscordID(java.util.UUID uuid)
Synchronously retrieves the Minecraft UUID associated to a Discord user ID
|
void |
getDiscordID(java.util.UUID uuid,
Callback<RetrievedID> callback)
Asynchronously retrieves the Minecraft UUID associated to a Discord user ID
|
RetrievedUUID |
getUUID(java.lang.Long id)
Synchronously retrieves the Minecraft UUID associated to a Discord user ID
|
void |
getUUID(java.lang.Long id,
Callback<RetrievedUUID> callback)
Asynchronously retrieves the Minecraft UUID associated to a Discord user ID
|
Registered |
isRegistered(java.lang.Long id)
Synchronously retrieves whether the specified Discord account has been registered through ServrLink.
|
void |
isRegistered(java.lang.Long id,
Callback<Registered> callback)
Asynchronously retrieves whether the specified Discord account has been registered through ServrLink.
|
Registered |
isRegistered(java.util.UUID uuid)
Synchronously retrieves whether the specified Minecraft account has been registered through ServrLink.
|
void |
isRegistered(java.util.UUID uuid,
Callback<Registered> callback)
Asynchronously retrieves whether the specified Minecraft account has been registered through ServrLink.
|
public Registered isRegistered(java.util.UUID uuid) throws java.io.IOException
uuid
- The user's Minecraft UUIDjava.io.IOException
Registered
public Registered isRegistered(java.lang.Long id) throws java.io.IOException
id
- The user's Discord user IDjava.io.IOException
Registered
public RetrievedUUID getUUID(java.lang.Long id) throws java.io.IOException
id
- The user's Discord user IDjava.io.IOException
RetrievedUUID
public RetrievedID getDiscordID(java.util.UUID uuid) throws java.io.IOException
uuid
- The user's Minecraft UUIDjava.io.IOException
RetrievedUUID
public void isRegistered(java.util.UUID uuid, Callback<Registered> callback)
uuid
- The user's Minecraft UUIDcallback
- A Registered object that contains 2 variables: success (Whether the request was successful), and isRegistered (Whether the user is registered)Registered
public void isRegistered(java.lang.Long id, Callback<Registered> callback)
id
- The user's Discord user IDcallback
- A Registered object that contains 2 variables: success (Whether the request was successful), and isRegistered (Whether the user is registered)Registered
public void getUUID(java.lang.Long id, Callback<RetrievedUUID> callback)
id
- The user's Discord user IDcallback
- A RetrievedUUID object that contains 2 variables: success (Whether the request was successful), and uuid (The user's UUID, or null if they are not registered)RetrievedUUID
public void getDiscordID(java.util.UUID uuid, Callback<RetrievedID> callback)
uuid
- The user's Minecraft UUIDcallback
- A RetrievedID object that contains 2 variables: success (Whether the request was successful), and id (The user's Discord ID, or null if they are not registered)RetrievedUUID