Package com.smartfoxserver.v2.entities
Class SFSBannedUser
- java.lang.Object
-
- com.smartfoxserver.v2.entities.SFSBannedUser
-
- All Implemented Interfaces:
BannedUser
,java.io.Serializable
public class SFSBannedUser extends java.lang.Object implements BannedUser, java.io.Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
adminName
protected int
banDurationMinutes
protected long
banTimeMillis
protected java.lang.String
ipAddress
protected BanMode
mode
protected java.lang.String
name
protected java.lang.String
reason
protected java.lang.String
zoneName
-
Constructor Summary
Constructors Constructor Description SFSBannedUser()
SFSBannedUser(User user, int durationMinutes, BanMode mode)
SFSBannedUser(User user, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String adminName)
SFSBannedUser(java.lang.String userName, java.lang.String zoneName, int durationMinutes, BanMode mode)
SFSBannedUser(java.lang.String userName, java.lang.String zoneName, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String adminName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAdminName()
int
getBanDurationMinutes()
long
getBanTimeMillis()
java.lang.String
getIpAddress()
BanMode
getMode()
java.lang.String
getName()
java.lang.String
getReason()
java.lang.String
getZoneName()
boolean
isExpired()
ISFSArray
toSFSArray()
java.lang.String
toString()
-
-
-
Field Detail
-
banTimeMillis
protected long banTimeMillis
-
banDurationMinutes
protected int banDurationMinutes
-
name
protected java.lang.String name
-
ipAddress
protected java.lang.String ipAddress
-
mode
protected BanMode mode
-
reason
protected java.lang.String reason
-
zoneName
protected java.lang.String zoneName
-
adminName
protected java.lang.String adminName
-
-
Constructor Detail
-
SFSBannedUser
public SFSBannedUser()
-
SFSBannedUser
public SFSBannedUser(User user, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String adminName)
-
SFSBannedUser
public SFSBannedUser(java.lang.String userName, java.lang.String zoneName, int durationMinutes, BanMode mode, java.lang.String reason, java.lang.String adminName)
-
SFSBannedUser
public SFSBannedUser(java.lang.String userName, java.lang.String zoneName, int durationMinutes, BanMode mode)
-
-
Method Detail
-
getZoneName
public java.lang.String getZoneName()
- Specified by:
getZoneName
in interfaceBannedUser
-
getBanTimeMillis
public long getBanTimeMillis()
- Specified by:
getBanTimeMillis
in interfaceBannedUser
-
getIpAddress
public java.lang.String getIpAddress()
- Specified by:
getIpAddress
in interfaceBannedUser
-
getMode
public BanMode getMode()
- Specified by:
getMode
in interfaceBannedUser
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceBannedUser
-
getReason
public java.lang.String getReason()
- Specified by:
getReason
in interfaceBannedUser
-
getAdminName
public java.lang.String getAdminName()
- Specified by:
getAdminName
in interfaceBannedUser
-
getBanDurationMinutes
public int getBanDurationMinutes()
- Specified by:
getBanDurationMinutes
in interfaceBannedUser
-
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interfaceBannedUser
-
toSFSArray
public ISFSArray toSFSArray()
- Specified by:
toSFSArray
in interfaceBannedUser
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-