class UserKind

Parents

object

Brief
This class defines a set of constants and methods to represent different types of users
Static Public Properties
TRADER_NAME Type of user: trader
CUSTOMER_NAME Type of user: customer
DEALER_NAME Type of user: dealer
ADMIN_NAME Type of user: admin
MERCHANT_NAME Type of user: merchant
UNDEFINED_NAME Type of user: undefined
Public Methods
create Creates a new instance of the class with a specified user type
isTrader Returns a boolean value indicating if the user type is a 'Trader'
isCustomer Returns a boolean value indicating if the user type is a 'Customer'
isDealer Returns a boolean value indicating if the user type is a 'Dealer'
isAdmin Returns a boolean value indicating if the user type is a 'Admin'
isMerchant Returns a boolean value indicating if the user type is a 'Merchant'
getName Returns a string representing the name of the user type