ElevatorMaintenance

UTILITYTOOLSDOCUMENTS

Exposed Methods

addElevator adds an elevator to they array

parameter nametypedetails
_elevatoridstringid of the elevator
_locationstringlocation of the elevator
_nextmaintenanceuintdate of the next maintenance
_availableboolstatus of the elevator

addEmployee registers an address as an employee

parameter nametypedetails
_addraddressethereum address of an employee

showElevator returns basic information of an elevator

parameter nametypedetails
_elevatoridstringid of the elevator

getElevatorCount returns the number of elevators

checkElevator function to be called by an employee once they've done the maintenance on an elevator

parameter nametypedetails
_elevatoridstringid of the elevator
_nextmaintenanceuintdate of the next maintenance

showMaintenances returns the dates of the maintenance at a certain index

parameter nametypedetails
_elevatoridstringid of the elevator
_indexuintindex of the maintenance

NoOfMaintenances returns the number of maintenances an elevator had

parameter nametypedetails
_elevatoridstringid of the elevator

removeElevator makes an elevator unavailable

parameter nametypedetails
_elevatoridstringid of the elevator
Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract