Record Class PWAProps.FirebaseConfig

java.lang.Object
java.lang.Record
com.iizix.prop.PWAProps.FirebaseConfig
Record Components:
apiKey - The API key, e.g. "AIzaSyDTyQDYYzX-RFuz2v6GauPEb0N-gWYzDBw".
authDomain - The authentication domain, e.g.: "my-app.firebaseapp.com".
projectId - The project ID, e.g. "my-app".
storageBucket - The storage bucket, e.g. "my-app.appspot.com".
messagingSenderId - The messaging Sender ID, e.g. "123456789012".
appId - The App ID, e.g. "1:123456789012:web:abcdef01234567890abcde".
measurementId - A potential Measurement ID, e.g. "G-ABC123XYZ0".
Enclosing class:
PWAProps

public static record PWAProps.FirebaseConfig(String apiKey, String authDomain, String projectId, String storageBucket, String messagingSenderId, String appId, String measurementId) extends Record
The "firebaseConfig" object parsed from JSON.
  • Constructor Details

    • FirebaseConfig

      public FirebaseConfig(String apiKey, String authDomain, String projectId, String storageBucket, String messagingSenderId, String appId, String measurementId)
      Creates an instance of a FirebaseConfig record class.
      Parameters:
      apiKey - the value for the apiKey record component
      authDomain - the value for the authDomain record component
      projectId - the value for the projectId record component
      storageBucket - the value for the storageBucket record component
      messagingSenderId - the value for the messagingSenderId record component
      appId - the value for the appId record component
      measurementId - the value for the measurementId record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • apiKey

      public String apiKey()
      Returns the value of the apiKey record component.
      Returns:
      the value of the apiKey record component
    • authDomain

      public String authDomain()
      Returns the value of the authDomain record component.
      Returns:
      the value of the authDomain record component
    • projectId

      public String projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • storageBucket

      public String storageBucket()
      Returns the value of the storageBucket record component.
      Returns:
      the value of the storageBucket record component
    • messagingSenderId

      public String messagingSenderId()
      Returns the value of the messagingSenderId record component.
      Returns:
      the value of the messagingSenderId record component
    • appId

      public String appId()
      Returns the value of the appId record component.
      Returns:
      the value of the appId record component
    • measurementId

      public String measurementId()
      Returns the value of the measurementId record component.
      Returns:
      the value of the measurementId record component