public class UserInfoImpl extends BaseCommandImpl implements com.tvd12.ezyfox.core.command.UserInfo
UserInfo
api, context, extension
Constructor and Description |
---|
UserInfoImpl(AppContextImpl context,
com.smartfoxserver.v2.api.ISFSApi api,
com.smartfoxserver.v2.extensions.ISFSExtension extension) |
Modifier and Type | Method and Description |
---|---|
void |
addCreatedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room) |
void |
addJoinedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room) |
void |
disconnect(byte reasonId) |
int |
getBadWordsWarnings() |
List<com.tvd12.ezyfox.core.entities.ApiRoom> |
getCreatedRooms() |
int |
getFloodWarnings() |
List<com.tvd12.ezyfox.core.entities.ApiRoom> |
getJoinedRooms() |
<T extends com.tvd12.ezyfox.core.entities.ApiRoom> |
getLastJoinedRoom() |
long |
getLastRequestTime() |
long |
getLoginTime() |
int |
getMaxAllowedVariables() |
int |
getOwnedRoomsCount() |
int |
getPlayerId() |
int |
getPlayerId(com.tvd12.ezyfox.core.entities.ApiRoom room) |
Map<com.tvd12.ezyfox.core.entities.ApiRoom,Integer> |
getPlayerIds() |
short |
getPrivilegeId() |
int |
getReconnectionSeconds() |
List<String> |
getSubscribedGroups() |
int |
getVariablesCount() |
com.tvd12.ezyfox.core.entities.ApiZone |
getZone() |
boolean |
isBeingKicked() |
boolean |
isConnected() |
boolean |
isJoinedInRoom(com.tvd12.ezyfox.core.entities.ApiRoom room) |
boolean |
isJoining() |
boolean |
isLocal() |
boolean |
isNPC() |
boolean |
isPlayer() |
boolean |
isPlayer(com.tvd12.ezyfox.core.entities.ApiRoom room) |
boolean |
isSpectator() |
boolean |
isSpectator(com.tvd12.ezyfox.core.entities.ApiRoom room) |
boolean |
isSubscribedToGroup(String groupId) |
boolean |
isSuperUser() |
void |
removeAllVariables() |
void |
removeCreatedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room) |
void |
removeJoinedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room) |
void |
setBadWordsWarnings(int count) |
void |
setBeingKicked(boolean flag) |
void |
setConnected(boolean flag) |
void |
setFloodWarnings(int count) |
void |
setJoining(boolean flag) |
void |
setLastLoginTime(long lastLoginTime) |
void |
setLastRequestTime(long millis) |
void |
setMaxAllowedVariables(int max) |
void |
setPlayerId(int id) |
void |
setPlayerId(int id,
com.tvd12.ezyfox.core.entities.ApiRoom room) |
void |
setPrivilegeId(short id) |
void |
setReconnectionSeconds(int seconds) |
void |
subscribeGroup(String groupId) |
void |
unsubscribeGroup(String groupId) |
void |
updateLastRequestTime() |
com.tvd12.ezyfox.core.command.UserInfo |
user(com.tvd12.ezyfox.core.entities.ApiBaseUser user) |
com.tvd12.ezyfox.core.command.UserInfo |
user(int userId) |
com.tvd12.ezyfox.core.command.UserInfo |
user(String username) |
public UserInfoImpl(AppContextImpl context, com.smartfoxserver.v2.api.ISFSApi api, com.smartfoxserver.v2.extensions.ISFSExtension extension)
context
- the contextapi
- the apiextension
- the extensionpublic void addCreatedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room)
addCreatedRoom
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void addJoinedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room)
addJoinedRoom
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void removeCreatedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room)
removeCreatedRoom
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void removeJoinedRoom(com.tvd12.ezyfox.core.entities.ApiRoom room)
removeJoinedRoom
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setBadWordsWarnings(int count)
setBadWordsWarnings
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setBeingKicked(boolean flag)
setBeingKicked
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setConnected(boolean flag)
setConnected
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setFloodWarnings(int count)
setFloodWarnings
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setJoining(boolean flag)
setJoining
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setLastLoginTime(long lastLoginTime)
setLastLoginTime
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setLastRequestTime(long millis)
setLastRequestTime
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setMaxAllowedVariables(int max)
setMaxAllowedVariables
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setPlayerId(int id, com.tvd12.ezyfox.core.entities.ApiRoom room)
setPlayerId
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setPlayerId(int id)
setPlayerId
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setPrivilegeId(short id)
setPrivilegeId
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void setReconnectionSeconds(int seconds)
setReconnectionSeconds
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void subscribeGroup(String groupId)
subscribeGroup
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void unsubscribeGroup(String groupId)
unsubscribeGroup
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public void updateLastRequestTime()
updateLastRequestTime
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public boolean isBeingKicked()
isBeingKicked
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isConnected()
isConnected
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isJoinedInRoom(com.tvd12.ezyfox.core.entities.ApiRoom room)
isJoinedInRoom
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isJoining()
isJoining
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isLocal()
isLocal
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isNPC()
isNPC
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isPlayer()
isPlayer
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isPlayer(com.tvd12.ezyfox.core.entities.ApiRoom room)
isPlayer
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isSpectator()
isSpectator
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isSpectator(com.tvd12.ezyfox.core.entities.ApiRoom room)
isSpectator
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isSubscribedToGroup(String groupId)
isSubscribedToGroup
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public boolean isSuperUser()
isSuperUser
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public short getPrivilegeId()
getPrivilegeId
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getBadWordsWarnings()
getBadWordsWarnings
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public List<com.tvd12.ezyfox.core.entities.ApiRoom> getCreatedRooms()
getCreatedRooms
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getFloodWarnings()
getFloodWarnings
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public List<com.tvd12.ezyfox.core.entities.ApiRoom> getJoinedRooms()
getJoinedRooms
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public <T extends com.tvd12.ezyfox.core.entities.ApiRoom> T getLastJoinedRoom()
getLastJoinedRoom
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public long getLastRequestTime()
getLastRequestTime
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public long getLoginTime()
getLoginTime
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getMaxAllowedVariables()
getMaxAllowedVariables
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getOwnedRoomsCount()
getOwnedRoomsCount
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getPlayerId()
getPlayerId
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getPlayerId(com.tvd12.ezyfox.core.entities.ApiRoom room)
getPlayerId
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public Map<com.tvd12.ezyfox.core.entities.ApiRoom,Integer> getPlayerIds()
getPlayerIds
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getReconnectionSeconds()
getReconnectionSeconds
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public List<String> getSubscribedGroups()
getSubscribedGroups
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public int getVariablesCount()
getVariablesCount
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public com.tvd12.ezyfox.core.entities.ApiZone getZone()
getZone
in interface com.tvd12.ezyfox.core.command.FetchUserInfo
public void removeAllVariables()
removeAllVariables
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
public com.tvd12.ezyfox.core.command.UserInfo user(com.tvd12.ezyfox.core.entities.ApiBaseUser user)
user
in interface com.tvd12.ezyfox.core.command.UserInfo
public com.tvd12.ezyfox.core.command.UserInfo user(String username)
user
in interface com.tvd12.ezyfox.core.command.UserInfo
public com.tvd12.ezyfox.core.command.UserInfo user(int userId)
user
in interface com.tvd12.ezyfox.core.command.UserInfo
public void disconnect(byte reasonId)
disconnect
in interface com.tvd12.ezyfox.core.command.UpdateUserInfo
Copyright © 2012–2017 Young Monkeys. All rights reserved.