class UserKind

Parents

object

Brief

This class defines a set of constants and methods to represent different types of users

Static Public Properties

ADMIN_NAME

Type of user: admin

CUSTOMER_NAME

Type of user: customer

DEALER_NAME

Type of user: dealer

MERCHANT_NAME

Type of user: merchant

TRADER_NAME

Type of user: trader

UNDEFINED_NAME

Type of user: undefined

Static Public Methods

create

Creates a new instance of the class with a specified user type

Public Methods

getName

Returns a string representing the name of the user type

isAdmin

Returns a boolean value indicating if the user type is a 'Admin'

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'

isMerchant

Returns a boolean value indicating if the user type is a 'Merchant'

isTrader

Returns a boolean value indicating if the user type is a 'Trader'

back