Criminal Record

Under Review

TOOLSDOCUMENTSUTILITY

Exposed Methods

addPerson adds a person to the array

parameter nametypedetails
_namestringname of the person
_SSNuintthe social security number of the person
_Addressstringphysical address of the person
_monthuintmonth the person was born
_dayuintday the person was born
_yearuintyear the person was born

addOffense adds an offense to a person

parameter nametypedetails
_SSNuintthe social security number of the person
_offensestringname of the offense
_Typestringtype of the offense
_dispositionstringdisposition given for the offense
_monthuintmonth the person was born
_dayuintday the person was born
_yearuintyear the person was born

getPerson returns information about a person, only the owner can call this function

parameter nametypedetails
_SSNuintthe social security number of the person

showOffense function to show the offenses of an individual

parameter nametypedetails
_SSNuintthe social security number of the person
_indexuintposition of the selected offense in the array

showOffensesCount shows the size of the offenses array to be used by dapp's for loop

parameter nametypedetails
_SSNuintthe social security number of the person
Reviewed by Modex
Buy
Buy Contract

Create an account or login to purchase this smart contract