-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds Firebase Database URL field in Configure Section. #42
Conversation
Added Firebase Database URL field in Configure Section.
@@ -54,7 +54,21 @@ | |||
<children> | |||
<TextField fx:id="webAPIKeyField" prefHeight="31.0" prefWidth="400.0" /> | |||
</children> | |||
</HBox> <Label text="Dynamic Link Domain"> | |||
</HBox> | |||
<Label text="Database URL"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Database URL could mean a number of things in this context. Pick a different label, maybe Firebase Realtime Database URL or Firebase Database URL.
src/main/java/Data/Data.java
Outdated
@@ -30,6 +31,7 @@ public Data(){ | |||
setDYNAMIC_LINK_DOMAIN((String) mainObject.getString("dynamicLinkDomain")); | |||
setANDROID_APP_PACKAGE_NAME((String) mainObject.getString("packageName")); | |||
setSYNC_CLIENT_URL((String) mainObject.getString("syncClientURL")); | |||
setDATABASE_URL((String) mainObject.getString("databaseURL")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The cast to String
is redundant.
src/main/java/Data/Data.java
Outdated
@@ -142,4 +146,12 @@ public String toString() { | |||
", SYNC_CLIENT_URL='" + SYNC_CLIENT_URL + '\'' + | |||
'}'; | |||
} | |||
|
|||
public String getDATABASE_URL() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please follow the convention of this class and move these getter/setter up where the other getters and setters are.
@linl33 please review new changes. |
src/main/java/Data/Data.java
Outdated
@Override | ||
public String toString() { | ||
return "Data{" + | ||
"SUPERVISOR_ID='" + SUPERVISOR_ID + '\'' + | ||
", WEB_API_KEY='" + WEB_API_KEY + '\'' + | ||
", DATABASE_URL='" + DATABASE_URL + '\'' + | ||
", DATABASE_URL='" + FIREBASE_DATABASE_URL + '\'' + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
", DATABASE_URL='"
This string here should be changed as well.
Closes #21