use of com.example.first_responder_app.dataModels.IncidentDataModel in project FirstResponse by mattpost1700.
the class RespondersGroupRecyclerViewAdapter method setEta.
public void setEta(ViewHolder holder, UsersDataModel user) {
for (int i = 0; i < incidentList.size(); i++) {
IncidentDataModel incident = incidentList.get(i);
Map<String, String> etas = incident.getEta();
List<String> responses = user.getResponses();
if (responses != null && responses.size() > 0 && responses.get(responses.size() - 1).equals(incident.getDocumentId())) {
if (etas != null && etas.containsKey(user.getDocumentId())) {
String eta = "ETA: " + etas.get(user.getDocumentId());
holder.responderEtaTextView.setText(eta);
return;
}
}
}
}
Aggregations