Package backend.json

Class JsonEdit

java.lang.Object
backend.json.JsonEdit

public class JsonEdit extends Object
This service use to manipulate a JSON File with custom class method
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getUser(String email)
    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
    static double
    readSaldo(String nome, String cognome)
    This static method use to red credit of user passing an identification of user to search
    static boolean
    writeSaldo(String nome, String cognome, double saldo)
    This method writes credit of user passing the full name of the user to wire

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonEdit

      public JsonEdit()
  • Method Details

    • getUser

      public static String getUser(String email)
      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

      public static boolean writeSaldo(String nome, String cognome, double saldo)
      This method writes credit of user passing the full name of the user to wire
      Parameters:
      nome - String of name
      cognome - String of surname
      saldo - String of credit to write
      Returns:
      a true if ok or false if not ok is write method it's ok
    • readSaldo

      public static double readSaldo(String nome, String cognome)
      This static method use to red credit of user passing an identification of user to search
      Parameters:
      nome - of user
      cognome - of user
      Returns:
      double of read credit