Package backend.json
Class JsonEdit
java.lang.Object
backend.json.JsonEdit
This service use to manipulate a JSON File with custom class method
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
This static method gets user information passing a mail identified user to get information and this information used in another component to authenticate a read for other informationstatic double
This static method use to red credit of user passing an identification of user to searchstatic boolean
writeSaldo
(String nome, String cognome, double saldo) This method writes credit of user passing the full name of the user to wire
-
Constructor Details
-
JsonEdit
public JsonEdit()
-
-
Method Details
-
getUser
This static method gets user information passing a mail identified user to get information and this information used in another component to authenticate a read for other information- Parameters:
email
- passed an user email tu identify search data- Returns:
- String of full name
-
writeSaldo
This method writes credit of user passing the full name of the user to wire- Parameters:
nome
- String of namecognome
- String of surnamesaldo
- String of credit to write- Returns:
- a
true
if ok orfalse
if not ok is write method it's ok
-
readSaldo
This static method use to red credit of user passing an identification of user to search- Parameters:
nome
- of usercognome
- of user- Returns:
- double of read credit
-