30/06
This commit is contained in:
BIN
OperatingHoursDay.class
Normal file
BIN
OperatingHoursDay.class
Normal file
Binary file not shown.
BIN
TestFirebase.class
Normal file
BIN
TestFirebase.class
Normal file
Binary file not shown.
17
TestFirebase.java
Normal file
17
TestFirebase.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import java.beans.Introspector;
|
||||
import java.beans.PropertyDescriptor;
|
||||
|
||||
public class TestFirebase {
|
||||
public static void main(String[] args) throws Exception {
|
||||
PropertyDescriptor[] pds = Introspector.getBeanInfo(OperatingHoursDay.class).getPropertyDescriptors();
|
||||
for (PropertyDescriptor pd : pds) {
|
||||
System.out.println("Property: " + pd.getName() + ", readMethod: " + (pd.getReadMethod() != null ? pd.getReadMethod().getName() : "null"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class OperatingHoursDay {
|
||||
private boolean isOpen;
|
||||
public boolean getIsOpen() { return isOpen; }
|
||||
public void setIsOpen(boolean isOpen) { this.isOpen = isOpen; }
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package com.example.pap_teste.models;
|
||||
|
||||
import java.io.Serializable;
|
||||
import com.google.firebase.database.PropertyName;
|
||||
|
||||
public class OperatingHoursDay implements Serializable {
|
||||
@PropertyName("isOpen")
|
||||
private boolean openStatus;
|
||||
private String openTime;
|
||||
private String closeTime;
|
||||
|
||||
public OperatingHoursDay() {
|
||||
// Construtor vazio necessário para Firebase
|
||||
}
|
||||
|
||||
@PropertyName("isOpen")
|
||||
public boolean getOpenStatus() {
|
||||
return openStatus;
|
||||
}
|
||||
|
||||
@PropertyName("isOpen")
|
||||
public void setOpenStatus(boolean openStatus) {
|
||||
this.openStatus = openStatus;
|
||||
}
|
||||
|
||||
public String getOpenTime() {
|
||||
return openTime;
|
||||
}
|
||||
|
||||
public void setOpenTime(String openTime) {
|
||||
this.openTime = openTime;
|
||||
}
|
||||
|
||||
public String getCloseTime() {
|
||||
return closeTime;
|
||||
}
|
||||
|
||||
public void setCloseTime(String closeTime) {
|
||||
this.closeTime = closeTime;
|
||||
}
|
||||
}
|
||||
13
app/src/main/res/drawable/ic_clock_gold.xml
Normal file
13
app/src/main/res/drawable/ic_clock_gold.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24"
|
||||
android:tint="#D4AF37">
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M11.99,2C6.47,2 2,6.48 2,12s4.47,10 9.99,10C17.52,22 22,17.52 22,12S17.52,2 11.99,2zM12,20c-4.42,0 -8,-3.58 -8,-8s3.58,-8 8,-8 8,3.58 8,8 -3.58,8 -8,8z" />
|
||||
<path
|
||||
android:fillColor="@android:color/white"
|
||||
android:pathData="M12.5,7H11v6l5.25,3.15 0.75,-1.23 -4.5,-2.67z" />
|
||||
</vector>
|
||||
Reference in New Issue
Block a user