public interface KongregateServices
Main interface for accessing Kongregate services
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GUEST_GAME_AUTH_TOKEN
Game Auth for guest users
|
static long |
GUEST_USER_ID
User id for a guest user
|
static java.lang.String |
GUEST_USERNAME
Username for a guest user
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getGameAuthToken() |
int |
getNotificationCount() |
long |
getUserId() |
java.lang.String |
getUsername() |
boolean |
hasKongPlus() |
boolean |
hasUnreadGuildMessages() |
boolean |
isConnected() |
boolean |
isGuest() |
void |
setCharacterToken(java.lang.String characterToken)
Updates the character token used for guild chat authentication.
|
static final java.lang.String GUEST_USERNAME
Username for a guest user
static final long GUEST_USER_ID
User id for a guest user
static final java.lang.String GUEST_GAME_AUTH_TOKEN
Game Auth for guest users
java.lang.String getUsername()
GUEST_USERNAME
if the user is a guestlong getUserId()
GUEST_USER_ID
if the user is a guestboolean isGuest()
boolean isConnected()
boolean hasKongPlus()
int getNotificationCount()
boolean hasUnreadGuildMessages()
java.lang.String getGameAuthToken()
void setCharacterToken(java.lang.String characterToken)
Updates the character token used for guild chat authentication. This should be generated on your server and signed using JWT.
characterToken
- The JWT signed token