package ModelClass;
import java.util.ArrayList;
public class ServicesCollection {
private ArrayList<String>services;
private ArrayList<String>serviceId;
private ArrayList<String>duration;
public ServicesCollection(ArrayList<String> services, ArrayList<String> serviceId, ArrayList<String> duration) {
this.services = services;
this.serviceId = serviceId;
this.duration = duration;
}
public ServicesCollection(){
}
public ArrayList<String> getServices() {
return services;
}
public void setServices(ArrayList<String> services) {
this.services = services;
}
public ArrayList<String> getServiceId() {
return serviceId;
}
public void setServiceId(ArrayList<String> serviceId) {
this.serviceId = serviceId;
}
public ArrayList<String> getDuration() {
return duration;
}
public void setDuration(ArrayList<String> duration) {
this.duration = duration;
}
}
我想将firestore
的详细信息存储在ModelClass
中,并且我想在不同的活动中从该ModelClass
检索值。我试图设置值。但是,当我尝试在不同的活动中获取值时,它将返回null。