Babysitter Manager

UTILITYTOOLS

Exposed Methods

addBabysitter allows the owner to add a babysitter

| parameter name | type | details | | --------- | --------- | --------- | | _name | string | name of the babysitter| | _hourlyrate | uint | |

fireBabysitter makes a babysitter unavailable for hire

| parameter name | type | details | | --------- | --------- | --------- | | _name | string | name of the babysitter|

checkPrice checks the price for a babysitter

| parameter name | type | details | | --------- | --------- | --------- | | _name | string | name of the babysitter| | _time | uint | time spent by the babysitter|

hireBabysitter customer hires a babysitter

|parameter name | type | details | | --------- | --------- | --------- | | _name | string | name of the babysitter|

** babysitterLeft** function that keeps track when the babysitter left

|parameter name | type | details | | --------- | --------- | --------- | | _name | string | name of the babysitter|

getBabysitterInfo gives the information of a babysitter

| parameter name | type | details | | --------- | --------- | --------- | | _name | string | name of the babysitter|

payBabysitter allows the customer to pay for the babysitter

| parameter name | type | details | | --------- | --------- | --------- | | _name | string | name of the babysitter|


Events

BabysitterAdded tracks when a babysitter was added BabysitterFired tracks when a babysitter was fired BabysitterPaid tracks when a babysitter was paid BabysitterHired tracks when a babysitter was hired

Buy
Reviewed by Modex
Buy Contract Test Contract

Create an account or login to purchase this smart contract