Class DBConnection

java.lang.Object
it.unisa.c03.myPersonalTrainer.firebase.DBConnection

public final class DBConnection
extends java.lang.Object
class that allows connection to the database.
  • Method Summary

    Modifier and Type Method Description
    static com.google.cloud.firestore.Firestore getConnection()  

    Methods inherited from class java.lang.Object

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

    • getConnection

      public static com.google.cloud.firestore.Firestore getConnection() throws java.io.IOException
      Returns:
      returns an object of type firestore with which it will be possible to interact with the database, thanks to the credentials generated by firebase
      Throws:
      java.io.IOException