I am attempting to develop the below data structure in a Firebase database with my user object in order to store FCM tokens in my database and I am not sure of how to implement my array list of fcm tokens in the User object
What is the best method to handle the FCM tokens for storage and retrieval?
public class User {
private String uId;
private String name;
private String email;
public ArrayList<Boolean> fcmTokens = new ArrayList<>();
public User(String uId, String name, String email) {
this.uId = uId;
this.name = name;
this.email = email;
}
public User() {
}
public String getUid() {
return uId;
}
public void setUid(String uId) {
this.uId = uId;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public String getEmail() {
return email;
}
public void setEmail(String email){
this.email = email;
}
///// HOW TO IMPLEMENT ARRAYLIST