This commit is contained in:
2026-01-27 16:39:04 +00:00
commit 9095806bf3
722 changed files with 60943 additions and 0 deletions

View File

@@ -0,0 +1,248 @@
package com.example.cuida.data;
import androidx.annotation.NonNull;
import androidx.room.DatabaseConfiguration;
import androidx.room.InvalidationTracker;
import androidx.room.RoomDatabase;
import androidx.room.RoomOpenHelper;
import androidx.room.migration.AutoMigrationSpec;
import androidx.room.migration.Migration;
import androidx.room.util.DBUtil;
import androidx.room.util.TableInfo;
import androidx.sqlite.db.SupportSQLiteDatabase;
import androidx.sqlite.db.SupportSQLiteOpenHelper;
import com.example.cuida.data.dao.AppointmentDao;
import com.example.cuida.data.dao.AppointmentDao_Impl;
import com.example.cuida.data.dao.MedicationDao;
import com.example.cuida.data.dao.MedicationDao_Impl;
import com.example.cuida.data.dao.UserDao;
import com.example.cuida.data.dao.UserDao_Impl;
import java.lang.Class;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@SuppressWarnings({"unchecked", "deprecation"})
public final class AppDatabase_Impl extends AppDatabase {
private volatile UserDao _userDao;
private volatile AppointmentDao _appointmentDao;
private volatile MedicationDao _medicationDao;
@Override
@NonNull
protected SupportSQLiteOpenHelper createOpenHelper(@NonNull final DatabaseConfiguration config) {
final SupportSQLiteOpenHelper.Callback _openCallback = new RoomOpenHelper(config, new RoomOpenHelper.Delegate(3) {
@Override
public void createAllTables(@NonNull final SupportSQLiteDatabase db) {
db.execSQL("CREATE TABLE IF NOT EXISTS `users` (`uid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `email` TEXT, `password` TEXT, `age` INTEGER NOT NULL, `utenteNumber` TEXT)");
db.execSQL("CREATE TABLE IF NOT EXISTS `appointments` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `type` TEXT, `date` TEXT, `time` TEXT, `isPast` INTEGER NOT NULL)");
db.execSQL("CREATE TABLE IF NOT EXISTS `medications` (`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `name` TEXT, `time` TEXT, `dosage` TEXT, `notes` TEXT, `isTaken` INTEGER NOT NULL)");
db.execSQL("CREATE TABLE IF NOT EXISTS room_master_table (id INTEGER PRIMARY KEY,identity_hash TEXT)");
db.execSQL("INSERT OR REPLACE INTO room_master_table (id,identity_hash) VALUES(42, 'fdb245045e6e5f934b33faff511d4d47')");
}
@Override
public void dropAllTables(@NonNull final SupportSQLiteDatabase db) {
db.execSQL("DROP TABLE IF EXISTS `users`");
db.execSQL("DROP TABLE IF EXISTS `appointments`");
db.execSQL("DROP TABLE IF EXISTS `medications`");
final List<? extends RoomDatabase.Callback> _callbacks = mCallbacks;
if (_callbacks != null) {
for (RoomDatabase.Callback _callback : _callbacks) {
_callback.onDestructiveMigration(db);
}
}
}
@Override
public void onCreate(@NonNull final SupportSQLiteDatabase db) {
final List<? extends RoomDatabase.Callback> _callbacks = mCallbacks;
if (_callbacks != null) {
for (RoomDatabase.Callback _callback : _callbacks) {
_callback.onCreate(db);
}
}
}
@Override
public void onOpen(@NonNull final SupportSQLiteDatabase db) {
mDatabase = db;
internalInitInvalidationTracker(db);
final List<? extends RoomDatabase.Callback> _callbacks = mCallbacks;
if (_callbacks != null) {
for (RoomDatabase.Callback _callback : _callbacks) {
_callback.onOpen(db);
}
}
}
@Override
public void onPreMigrate(@NonNull final SupportSQLiteDatabase db) {
DBUtil.dropFtsSyncTriggers(db);
}
@Override
public void onPostMigrate(@NonNull final SupportSQLiteDatabase db) {
}
@Override
@NonNull
public RoomOpenHelper.ValidationResult onValidateSchema(
@NonNull final SupportSQLiteDatabase db) {
final HashMap<String, TableInfo.Column> _columnsUsers = new HashMap<String, TableInfo.Column>(6);
_columnsUsers.put("uid", new TableInfo.Column("uid", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("name", new TableInfo.Column("name", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("email", new TableInfo.Column("email", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("password", new TableInfo.Column("password", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("age", new TableInfo.Column("age", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsUsers.put("utenteNumber", new TableInfo.Column("utenteNumber", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
final HashSet<TableInfo.ForeignKey> _foreignKeysUsers = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesUsers = new HashSet<TableInfo.Index>(0);
final TableInfo _infoUsers = new TableInfo("users", _columnsUsers, _foreignKeysUsers, _indicesUsers);
final TableInfo _existingUsers = TableInfo.read(db, "users");
if (!_infoUsers.equals(_existingUsers)) {
return new RoomOpenHelper.ValidationResult(false, "users(com.example.cuida.data.model.User).\n"
+ " Expected:\n" + _infoUsers + "\n"
+ " Found:\n" + _existingUsers);
}
final HashMap<String, TableInfo.Column> _columnsAppointments = new HashMap<String, TableInfo.Column>(5);
_columnsAppointments.put("id", new TableInfo.Column("id", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("type", new TableInfo.Column("type", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("date", new TableInfo.Column("date", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("time", new TableInfo.Column("time", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsAppointments.put("isPast", new TableInfo.Column("isPast", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
final HashSet<TableInfo.ForeignKey> _foreignKeysAppointments = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesAppointments = new HashSet<TableInfo.Index>(0);
final TableInfo _infoAppointments = new TableInfo("appointments", _columnsAppointments, _foreignKeysAppointments, _indicesAppointments);
final TableInfo _existingAppointments = TableInfo.read(db, "appointments");
if (!_infoAppointments.equals(_existingAppointments)) {
return new RoomOpenHelper.ValidationResult(false, "appointments(com.example.cuida.data.model.Appointment).\n"
+ " Expected:\n" + _infoAppointments + "\n"
+ " Found:\n" + _existingAppointments);
}
final HashMap<String, TableInfo.Column> _columnsMedications = new HashMap<String, TableInfo.Column>(6);
_columnsMedications.put("id", new TableInfo.Column("id", "INTEGER", true, 1, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("name", new TableInfo.Column("name", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("time", new TableInfo.Column("time", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("dosage", new TableInfo.Column("dosage", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("notes", new TableInfo.Column("notes", "TEXT", false, 0, null, TableInfo.CREATED_FROM_ENTITY));
_columnsMedications.put("isTaken", new TableInfo.Column("isTaken", "INTEGER", true, 0, null, TableInfo.CREATED_FROM_ENTITY));
final HashSet<TableInfo.ForeignKey> _foreignKeysMedications = new HashSet<TableInfo.ForeignKey>(0);
final HashSet<TableInfo.Index> _indicesMedications = new HashSet<TableInfo.Index>(0);
final TableInfo _infoMedications = new TableInfo("medications", _columnsMedications, _foreignKeysMedications, _indicesMedications);
final TableInfo _existingMedications = TableInfo.read(db, "medications");
if (!_infoMedications.equals(_existingMedications)) {
return new RoomOpenHelper.ValidationResult(false, "medications(com.example.cuida.data.model.Medication).\n"
+ " Expected:\n" + _infoMedications + "\n"
+ " Found:\n" + _existingMedications);
}
return new RoomOpenHelper.ValidationResult(true, null);
}
}, "fdb245045e6e5f934b33faff511d4d47", "0a9fc99c5381f75f227d7e7f13cc12c1");
final SupportSQLiteOpenHelper.Configuration _sqliteConfig = SupportSQLiteOpenHelper.Configuration.builder(config.context).name(config.name).callback(_openCallback).build();
final SupportSQLiteOpenHelper _helper = config.sqliteOpenHelperFactory.create(_sqliteConfig);
return _helper;
}
@Override
@NonNull
protected InvalidationTracker createInvalidationTracker() {
final HashMap<String, String> _shadowTablesMap = new HashMap<String, String>(0);
final HashMap<String, Set<String>> _viewTables = new HashMap<String, Set<String>>(0);
return new InvalidationTracker(this, _shadowTablesMap, _viewTables, "users","appointments","medications");
}
@Override
public void clearAllTables() {
super.assertNotMainThread();
final SupportSQLiteDatabase _db = super.getOpenHelper().getWritableDatabase();
try {
super.beginTransaction();
_db.execSQL("DELETE FROM `users`");
_db.execSQL("DELETE FROM `appointments`");
_db.execSQL("DELETE FROM `medications`");
super.setTransactionSuccessful();
} finally {
super.endTransaction();
_db.query("PRAGMA wal_checkpoint(FULL)").close();
if (!_db.inTransaction()) {
_db.execSQL("VACUUM");
}
}
}
@Override
@NonNull
protected Map<Class<?>, List<Class<?>>> getRequiredTypeConverters() {
final HashMap<Class<?>, List<Class<?>>> _typeConvertersMap = new HashMap<Class<?>, List<Class<?>>>();
_typeConvertersMap.put(UserDao.class, UserDao_Impl.getRequiredConverters());
_typeConvertersMap.put(AppointmentDao.class, AppointmentDao_Impl.getRequiredConverters());
_typeConvertersMap.put(MedicationDao.class, MedicationDao_Impl.getRequiredConverters());
return _typeConvertersMap;
}
@Override
@NonNull
public Set<Class<? extends AutoMigrationSpec>> getRequiredAutoMigrationSpecs() {
final HashSet<Class<? extends AutoMigrationSpec>> _autoMigrationSpecsSet = new HashSet<Class<? extends AutoMigrationSpec>>();
return _autoMigrationSpecsSet;
}
@Override
@NonNull
public List<Migration> getAutoMigrations(
@NonNull final Map<Class<? extends AutoMigrationSpec>, AutoMigrationSpec> autoMigrationSpecs) {
final List<Migration> _autoMigrations = new ArrayList<Migration>();
return _autoMigrations;
}
@Override
public UserDao userDao() {
if (_userDao != null) {
return _userDao;
} else {
synchronized(this) {
if(_userDao == null) {
_userDao = new UserDao_Impl(this);
}
return _userDao;
}
}
}
@Override
public AppointmentDao appointmentDao() {
if (_appointmentDao != null) {
return _appointmentDao;
} else {
synchronized(this) {
if(_appointmentDao == null) {
_appointmentDao = new AppointmentDao_Impl(this);
}
return _appointmentDao;
}
}
}
@Override
public MedicationDao medicationDao() {
if (_medicationDao != null) {
return _medicationDao;
} else {
synchronized(this) {
if(_medicationDao == null) {
_medicationDao = new MedicationDao_Impl(this);
}
return _medicationDao;
}
}
}
}

View File

@@ -0,0 +1,194 @@
package com.example.cuida.data.dao;
import android.database.Cursor;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.LiveData;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.example.cuida.data.model.Appointment;
import java.lang.Class;
import java.lang.Exception;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
@SuppressWarnings({"unchecked", "deprecation"})
public final class AppointmentDao_Impl implements AppointmentDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter<Appointment> __insertionAdapterOfAppointment;
public AppointmentDao_Impl(@NonNull final RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfAppointment = new EntityInsertionAdapter<Appointment>(__db) {
@Override
@NonNull
protected String createQuery() {
return "INSERT OR ABORT INTO `appointments` (`id`,`type`,`date`,`time`,`isPast`) VALUES (nullif(?, 0),?,?,?,?)";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement,
final Appointment entity) {
statement.bindLong(1, entity.id);
if (entity.type == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.type);
}
if (entity.date == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.date);
}
if (entity.time == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.time);
}
final int _tmp = entity.isPast ? 1 : 0;
statement.bindLong(5, _tmp);
}
};
}
@Override
public void insert(final Appointment appointment) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__insertionAdapterOfAppointment.insert(appointment);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public LiveData<List<Appointment>> getFutureAppointments() {
final String _sql = "SELECT * FROM appointments WHERE isPast = 0 ORDER BY date ASC, time ASC";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"appointments"}, false, new Callable<List<Appointment>>() {
@Override
@Nullable
public List<Appointment> call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfType = CursorUtil.getColumnIndexOrThrow(_cursor, "type");
final int _cursorIndexOfDate = CursorUtil.getColumnIndexOrThrow(_cursor, "date");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfIsPast = CursorUtil.getColumnIndexOrThrow(_cursor, "isPast");
final List<Appointment> _result = new ArrayList<Appointment>(_cursor.getCount());
while (_cursor.moveToNext()) {
final Appointment _item;
final String _tmpType;
if (_cursor.isNull(_cursorIndexOfType)) {
_tmpType = null;
} else {
_tmpType = _cursor.getString(_cursorIndexOfType);
}
final String _tmpDate;
if (_cursor.isNull(_cursorIndexOfDate)) {
_tmpDate = null;
} else {
_tmpDate = _cursor.getString(_cursorIndexOfDate);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final boolean _tmpIsPast;
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsPast);
_tmpIsPast = _tmp != 0;
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpIsPast);
_item.id = _cursor.getInt(_cursorIndexOfId);
_result.add(_item);
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@Override
public LiveData<List<Appointment>> getPastAppointments() {
final String _sql = "SELECT * FROM appointments WHERE isPast = 1 ORDER BY date DESC, time DESC";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"appointments"}, false, new Callable<List<Appointment>>() {
@Override
@Nullable
public List<Appointment> call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfType = CursorUtil.getColumnIndexOrThrow(_cursor, "type");
final int _cursorIndexOfDate = CursorUtil.getColumnIndexOrThrow(_cursor, "date");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfIsPast = CursorUtil.getColumnIndexOrThrow(_cursor, "isPast");
final List<Appointment> _result = new ArrayList<Appointment>(_cursor.getCount());
while (_cursor.moveToNext()) {
final Appointment _item;
final String _tmpType;
if (_cursor.isNull(_cursorIndexOfType)) {
_tmpType = null;
} else {
_tmpType = _cursor.getString(_cursorIndexOfType);
}
final String _tmpDate;
if (_cursor.isNull(_cursorIndexOfDate)) {
_tmpDate = null;
} else {
_tmpDate = _cursor.getString(_cursorIndexOfDate);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final boolean _tmpIsPast;
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsPast);
_tmpIsPast = _tmp != 0;
_item = new Appointment(_tmpType,_tmpDate,_tmpTime,_tmpIsPast);
_item.id = _cursor.getInt(_cursorIndexOfId);
_result.add(_item);
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@NonNull
public static List<Class<?>> getRequiredConverters() {
return Collections.emptyList();
}
}

View File

@@ -0,0 +1,262 @@
package com.example.cuida.data.dao;
import android.database.Cursor;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.lifecycle.LiveData;
import androidx.room.EntityDeletionOrUpdateAdapter;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.example.cuida.data.model.Medication;
import java.lang.Class;
import java.lang.Exception;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
@SuppressWarnings({"unchecked", "deprecation"})
public final class MedicationDao_Impl implements MedicationDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter<Medication> __insertionAdapterOfMedication;
private final EntityDeletionOrUpdateAdapter<Medication> __updateAdapterOfMedication;
public MedicationDao_Impl(@NonNull final RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfMedication = new EntityInsertionAdapter<Medication>(__db) {
@Override
@NonNull
protected String createQuery() {
return "INSERT OR ABORT INTO `medications` (`id`,`name`,`time`,`dosage`,`notes`,`isTaken`) VALUES (nullif(?, 0),?,?,?,?,?)";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement,
final Medication entity) {
statement.bindLong(1, entity.id);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.time == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.time);
}
if (entity.dosage == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.dosage);
}
if (entity.notes == null) {
statement.bindNull(5);
} else {
statement.bindString(5, entity.notes);
}
final int _tmp = entity.isTaken ? 1 : 0;
statement.bindLong(6, _tmp);
}
};
this.__updateAdapterOfMedication = new EntityDeletionOrUpdateAdapter<Medication>(__db) {
@Override
@NonNull
protected String createQuery() {
return "UPDATE OR ABORT `medications` SET `id` = ?,`name` = ?,`time` = ?,`dosage` = ?,`notes` = ?,`isTaken` = ? WHERE `id` = ?";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement,
final Medication entity) {
statement.bindLong(1, entity.id);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.time == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.time);
}
if (entity.dosage == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.dosage);
}
if (entity.notes == null) {
statement.bindNull(5);
} else {
statement.bindString(5, entity.notes);
}
final int _tmp = entity.isTaken ? 1 : 0;
statement.bindLong(6, _tmp);
statement.bindLong(7, entity.id);
}
};
}
@Override
public void insert(final Medication medication) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__insertionAdapterOfMedication.insert(medication);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void update(final Medication medication) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__updateAdapterOfMedication.handle(medication);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public LiveData<List<Medication>> getAllMedications() {
final String _sql = "SELECT * FROM medications ORDER BY time ASC";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"medications"}, false, new Callable<List<Medication>>() {
@Override
@Nullable
public List<Medication> call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfDosage = CursorUtil.getColumnIndexOrThrow(_cursor, "dosage");
final int _cursorIndexOfNotes = CursorUtil.getColumnIndexOrThrow(_cursor, "notes");
final int _cursorIndexOfIsTaken = CursorUtil.getColumnIndexOrThrow(_cursor, "isTaken");
final List<Medication> _result = new ArrayList<Medication>(_cursor.getCount());
while (_cursor.moveToNext()) {
final Medication _item;
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final String _tmpDosage;
if (_cursor.isNull(_cursorIndexOfDosage)) {
_tmpDosage = null;
} else {
_tmpDosage = _cursor.getString(_cursorIndexOfDosage);
}
final String _tmpNotes;
if (_cursor.isNull(_cursorIndexOfNotes)) {
_tmpNotes = null;
} else {
_tmpNotes = _cursor.getString(_cursorIndexOfNotes);
}
_item = new Medication(_tmpName,_tmpTime,_tmpDosage,_tmpNotes);
_item.id = _cursor.getInt(_cursorIndexOfId);
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsTaken);
_item.isTaken = _tmp != 0;
_result.add(_item);
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@Override
public LiveData<Medication> getNextMedication() {
final String _sql = "SELECT * FROM medications ORDER BY time ASC LIMIT 1";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 0);
return __db.getInvalidationTracker().createLiveData(new String[] {"medications"}, false, new Callable<Medication>() {
@Override
@Nullable
public Medication call() throws Exception {
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfId = CursorUtil.getColumnIndexOrThrow(_cursor, "id");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfTime = CursorUtil.getColumnIndexOrThrow(_cursor, "time");
final int _cursorIndexOfDosage = CursorUtil.getColumnIndexOrThrow(_cursor, "dosage");
final int _cursorIndexOfNotes = CursorUtil.getColumnIndexOrThrow(_cursor, "notes");
final int _cursorIndexOfIsTaken = CursorUtil.getColumnIndexOrThrow(_cursor, "isTaken");
final Medication _result;
if (_cursor.moveToFirst()) {
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpTime;
if (_cursor.isNull(_cursorIndexOfTime)) {
_tmpTime = null;
} else {
_tmpTime = _cursor.getString(_cursorIndexOfTime);
}
final String _tmpDosage;
if (_cursor.isNull(_cursorIndexOfDosage)) {
_tmpDosage = null;
} else {
_tmpDosage = _cursor.getString(_cursorIndexOfDosage);
}
final String _tmpNotes;
if (_cursor.isNull(_cursorIndexOfNotes)) {
_tmpNotes = null;
} else {
_tmpNotes = _cursor.getString(_cursorIndexOfNotes);
}
_result = new Medication(_tmpName,_tmpTime,_tmpDosage,_tmpNotes);
_result.id = _cursor.getInt(_cursorIndexOfId);
final int _tmp;
_tmp = _cursor.getInt(_cursorIndexOfIsTaken);
_result.isTaken = _tmp != 0;
} else {
_result = null;
}
return _result;
} finally {
_cursor.close();
}
}
@Override
protected void finalize() {
_statement.release();
}
});
}
@NonNull
public static List<Class<?>> getRequiredConverters() {
return Collections.emptyList();
}
}

View File

@@ -0,0 +1,279 @@
package com.example.cuida.data.dao;
import android.database.Cursor;
import androidx.annotation.NonNull;
import androidx.room.EntityDeletionOrUpdateAdapter;
import androidx.room.EntityInsertionAdapter;
import androidx.room.RoomDatabase;
import androidx.room.RoomSQLiteQuery;
import androidx.room.SharedSQLiteStatement;
import androidx.room.util.CursorUtil;
import androidx.room.util.DBUtil;
import androidx.sqlite.db.SupportSQLiteStatement;
import com.example.cuida.data.model.User;
import java.lang.Class;
import java.lang.Override;
import java.lang.String;
import java.lang.SuppressWarnings;
import java.util.Collections;
import java.util.List;
@SuppressWarnings({"unchecked", "deprecation"})
public final class UserDao_Impl implements UserDao {
private final RoomDatabase __db;
private final EntityInsertionAdapter<User> __insertionAdapterOfUser;
private final EntityDeletionOrUpdateAdapter<User> __updateAdapterOfUser;
private final SharedSQLiteStatement __preparedStmtOfDeleteAll;
public UserDao_Impl(@NonNull final RoomDatabase __db) {
this.__db = __db;
this.__insertionAdapterOfUser = new EntityInsertionAdapter<User>(__db) {
@Override
@NonNull
protected String createQuery() {
return "INSERT OR REPLACE INTO `users` (`uid`,`name`,`email`,`password`,`age`,`utenteNumber`) VALUES (nullif(?, 0),?,?,?,?,?)";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement, final User entity) {
statement.bindLong(1, entity.uid);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.email == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.email);
}
if (entity.password == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.password);
}
statement.bindLong(5, entity.age);
if (entity.utenteNumber == null) {
statement.bindNull(6);
} else {
statement.bindString(6, entity.utenteNumber);
}
}
};
this.__updateAdapterOfUser = new EntityDeletionOrUpdateAdapter<User>(__db) {
@Override
@NonNull
protected String createQuery() {
return "UPDATE OR ABORT `users` SET `uid` = ?,`name` = ?,`email` = ?,`password` = ?,`age` = ?,`utenteNumber` = ? WHERE `uid` = ?";
}
@Override
protected void bind(@NonNull final SupportSQLiteStatement statement, final User entity) {
statement.bindLong(1, entity.uid);
if (entity.name == null) {
statement.bindNull(2);
} else {
statement.bindString(2, entity.name);
}
if (entity.email == null) {
statement.bindNull(3);
} else {
statement.bindString(3, entity.email);
}
if (entity.password == null) {
statement.bindNull(4);
} else {
statement.bindString(4, entity.password);
}
statement.bindLong(5, entity.age);
if (entity.utenteNumber == null) {
statement.bindNull(6);
} else {
statement.bindString(6, entity.utenteNumber);
}
statement.bindLong(7, entity.uid);
}
};
this.__preparedStmtOfDeleteAll = new SharedSQLiteStatement(__db) {
@Override
@NonNull
public String createQuery() {
final String _query = "delete from users";
return _query;
}
};
}
@Override
public void insert(final User user) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__insertionAdapterOfUser.insert(user);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void update(final User user) {
__db.assertNotSuspendingTransaction();
__db.beginTransaction();
try {
__updateAdapterOfUser.handle(user);
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
}
@Override
public void deleteAll() {
__db.assertNotSuspendingTransaction();
final SupportSQLiteStatement _stmt = __preparedStmtOfDeleteAll.acquire();
try {
__db.beginTransaction();
try {
_stmt.executeUpdateDelete();
__db.setTransactionSuccessful();
} finally {
__db.endTransaction();
}
} finally {
__preparedStmtOfDeleteAll.release(_stmt);
}
}
@Override
public User login(final String email, final String password) {
final String _sql = "SELECT * FROM users WHERE email = ? AND password = ? LIMIT 1";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 2);
int _argIndex = 1;
if (email == null) {
_statement.bindNull(_argIndex);
} else {
_statement.bindString(_argIndex, email);
}
_argIndex = 2;
if (password == null) {
_statement.bindNull(_argIndex);
} else {
_statement.bindString(_argIndex, password);
}
__db.assertNotSuspendingTransaction();
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfUid = CursorUtil.getColumnIndexOrThrow(_cursor, "uid");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfEmail = CursorUtil.getColumnIndexOrThrow(_cursor, "email");
final int _cursorIndexOfPassword = CursorUtil.getColumnIndexOrThrow(_cursor, "password");
final int _cursorIndexOfAge = CursorUtil.getColumnIndexOrThrow(_cursor, "age");
final int _cursorIndexOfUtenteNumber = CursorUtil.getColumnIndexOrThrow(_cursor, "utenteNumber");
final User _result;
if (_cursor.moveToFirst()) {
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpEmail;
if (_cursor.isNull(_cursorIndexOfEmail)) {
_tmpEmail = null;
} else {
_tmpEmail = _cursor.getString(_cursorIndexOfEmail);
}
final String _tmpPassword;
if (_cursor.isNull(_cursorIndexOfPassword)) {
_tmpPassword = null;
} else {
_tmpPassword = _cursor.getString(_cursorIndexOfPassword);
}
final int _tmpAge;
_tmpAge = _cursor.getInt(_cursorIndexOfAge);
final String _tmpUtenteNumber;
if (_cursor.isNull(_cursorIndexOfUtenteNumber)) {
_tmpUtenteNumber = null;
} else {
_tmpUtenteNumber = _cursor.getString(_cursorIndexOfUtenteNumber);
}
_result = new User(_tmpName,_tmpEmail,_tmpPassword,_tmpAge,_tmpUtenteNumber);
_result.uid = _cursor.getInt(_cursorIndexOfUid);
} else {
_result = null;
}
return _result;
} finally {
_cursor.close();
_statement.release();
}
}
@Override
public User checkUser(final String email) {
final String _sql = "SELECT * FROM users WHERE email = ? LIMIT 1";
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
int _argIndex = 1;
if (email == null) {
_statement.bindNull(_argIndex);
} else {
_statement.bindString(_argIndex, email);
}
__db.assertNotSuspendingTransaction();
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
try {
final int _cursorIndexOfUid = CursorUtil.getColumnIndexOrThrow(_cursor, "uid");
final int _cursorIndexOfName = CursorUtil.getColumnIndexOrThrow(_cursor, "name");
final int _cursorIndexOfEmail = CursorUtil.getColumnIndexOrThrow(_cursor, "email");
final int _cursorIndexOfPassword = CursorUtil.getColumnIndexOrThrow(_cursor, "password");
final int _cursorIndexOfAge = CursorUtil.getColumnIndexOrThrow(_cursor, "age");
final int _cursorIndexOfUtenteNumber = CursorUtil.getColumnIndexOrThrow(_cursor, "utenteNumber");
final User _result;
if (_cursor.moveToFirst()) {
final String _tmpName;
if (_cursor.isNull(_cursorIndexOfName)) {
_tmpName = null;
} else {
_tmpName = _cursor.getString(_cursorIndexOfName);
}
final String _tmpEmail;
if (_cursor.isNull(_cursorIndexOfEmail)) {
_tmpEmail = null;
} else {
_tmpEmail = _cursor.getString(_cursorIndexOfEmail);
}
final String _tmpPassword;
if (_cursor.isNull(_cursorIndexOfPassword)) {
_tmpPassword = null;
} else {
_tmpPassword = _cursor.getString(_cursorIndexOfPassword);
}
final int _tmpAge;
_tmpAge = _cursor.getInt(_cursorIndexOfAge);
final String _tmpUtenteNumber;
if (_cursor.isNull(_cursorIndexOfUtenteNumber)) {
_tmpUtenteNumber = null;
} else {
_tmpUtenteNumber = _cursor.getString(_cursorIndexOfUtenteNumber);
}
_result = new User(_tmpName,_tmpEmail,_tmpPassword,_tmpAge,_tmpUtenteNumber);
_result.uid = _cursor.getInt(_cursorIndexOfUid);
} else {
_result = null;
}
return _result;
} finally {
_cursor.close();
_statement.release();
}
}
@NonNull
public static List<Class<?>> getRequiredConverters() {
return Collections.emptyList();
}
}

View File

@@ -0,0 +1,93 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityForgotPasswordBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final TextView backToLogin;
@NonNull
public final TextInputEditText emailEditText;
@NonNull
public final MaterialButton resetButton;
private ActivityForgotPasswordBinding(@NonNull LinearLayout rootView,
@NonNull TextView backToLogin, @NonNull TextInputEditText emailEditText,
@NonNull MaterialButton resetButton) {
this.rootView = rootView;
this.backToLogin = backToLogin;
this.emailEditText = emailEditText;
this.resetButton = resetButton;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static ActivityForgotPasswordBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityForgotPasswordBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_forgot_password, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityForgotPasswordBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.back_to_login;
TextView backToLogin = ViewBindings.findChildViewById(rootView, id);
if (backToLogin == null) {
break missingId;
}
id = R.id.email_edit_text;
TextInputEditText emailEditText = ViewBindings.findChildViewById(rootView, id);
if (emailEditText == null) {
break missingId;
}
id = R.id.reset_button;
MaterialButton resetButton = ViewBindings.findChildViewById(rootView, id);
if (resetButton == null) {
break missingId;
}
return new ActivityForgotPasswordBinding((LinearLayout) rootView, backToLogin, emailEditText,
resetButton);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,114 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityLoginBinding implements ViewBinding {
@NonNull
private final ScrollView rootView;
@NonNull
public final TextInputEditText emailEditText;
@NonNull
public final TextView forgotPasswordLink;
@NonNull
public final MaterialButton loginButton;
@NonNull
public final TextInputEditText passwordEditText;
@NonNull
public final TextView registerLink;
private ActivityLoginBinding(@NonNull ScrollView rootView,
@NonNull TextInputEditText emailEditText, @NonNull TextView forgotPasswordLink,
@NonNull MaterialButton loginButton, @NonNull TextInputEditText passwordEditText,
@NonNull TextView registerLink) {
this.rootView = rootView;
this.emailEditText = emailEditText;
this.forgotPasswordLink = forgotPasswordLink;
this.loginButton = loginButton;
this.passwordEditText = passwordEditText;
this.registerLink = registerLink;
}
@Override
@NonNull
public ScrollView getRoot() {
return rootView;
}
@NonNull
public static ActivityLoginBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityLoginBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_login, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityLoginBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.email_edit_text;
TextInputEditText emailEditText = ViewBindings.findChildViewById(rootView, id);
if (emailEditText == null) {
break missingId;
}
id = R.id.forgot_password_link;
TextView forgotPasswordLink = ViewBindings.findChildViewById(rootView, id);
if (forgotPasswordLink == null) {
break missingId;
}
id = R.id.login_button;
MaterialButton loginButton = ViewBindings.findChildViewById(rootView, id);
if (loginButton == null) {
break missingId;
}
id = R.id.password_edit_text;
TextInputEditText passwordEditText = ViewBindings.findChildViewById(rootView, id);
if (passwordEditText == null) {
break missingId;
}
id = R.id.register_link;
TextView registerLink = ViewBindings.findChildViewById(rootView, id);
if (registerLink == null) {
break missingId;
}
return new ActivityLoginBinding((ScrollView) rootView, emailEditText, forgotPasswordLink,
loginButton, passwordEditText, registerLink);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,69 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityMainBinding implements ViewBinding {
@NonNull
private final ConstraintLayout rootView;
@NonNull
public final BottomNavigationView navView;
private ActivityMainBinding(@NonNull ConstraintLayout rootView,
@NonNull BottomNavigationView navView) {
this.rootView = rootView;
this.navView = navView;
}
@Override
@NonNull
public ConstraintLayout getRoot() {
return rootView;
}
@NonNull
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityMainBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_main, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityMainBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.nav_view;
BottomNavigationView navView = ViewBindings.findChildViewById(rootView, id);
if (navView == null) {
break missingId;
}
return new ActivityMainBinding((ConstraintLayout) rootView, navView);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,135 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ActivityRegisterBinding implements ViewBinding {
@NonNull
private final ScrollView rootView;
@NonNull
public final TextInputEditText ageEditText;
@NonNull
public final TextInputEditText emailEditText;
@NonNull
public final TextView loginLink;
@NonNull
public final TextInputEditText nameEditText;
@NonNull
public final TextInputEditText passwordEditText;
@NonNull
public final MaterialButton registerButton;
@NonNull
public final TextInputEditText utenteEditText;
private ActivityRegisterBinding(@NonNull ScrollView rootView,
@NonNull TextInputEditText ageEditText, @NonNull TextInputEditText emailEditText,
@NonNull TextView loginLink, @NonNull TextInputEditText nameEditText,
@NonNull TextInputEditText passwordEditText, @NonNull MaterialButton registerButton,
@NonNull TextInputEditText utenteEditText) {
this.rootView = rootView;
this.ageEditText = ageEditText;
this.emailEditText = emailEditText;
this.loginLink = loginLink;
this.nameEditText = nameEditText;
this.passwordEditText = passwordEditText;
this.registerButton = registerButton;
this.utenteEditText = utenteEditText;
}
@Override
@NonNull
public ScrollView getRoot() {
return rootView;
}
@NonNull
public static ActivityRegisterBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ActivityRegisterBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.activity_register, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ActivityRegisterBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.age_edit_text;
TextInputEditText ageEditText = ViewBindings.findChildViewById(rootView, id);
if (ageEditText == null) {
break missingId;
}
id = R.id.email_edit_text;
TextInputEditText emailEditText = ViewBindings.findChildViewById(rootView, id);
if (emailEditText == null) {
break missingId;
}
id = R.id.login_link;
TextView loginLink = ViewBindings.findChildViewById(rootView, id);
if (loginLink == null) {
break missingId;
}
id = R.id.name_edit_text;
TextInputEditText nameEditText = ViewBindings.findChildViewById(rootView, id);
if (nameEditText == null) {
break missingId;
}
id = R.id.password_edit_text;
TextInputEditText passwordEditText = ViewBindings.findChildViewById(rootView, id);
if (passwordEditText == null) {
break missingId;
}
id = R.id.register_button;
MaterialButton registerButton = ViewBindings.findChildViewById(rootView, id);
if (registerButton == null) {
break missingId;
}
id = R.id.utente_edit_text;
TextInputEditText utenteEditText = ViewBindings.findChildViewById(rootView, id);
if (utenteEditText == null) {
break missingId;
}
return new ActivityRegisterBinding((ScrollView) rootView, ageEditText, emailEditText,
loginLink, nameEditText, passwordEditText, registerButton, utenteEditText);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,134 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ScrollView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.textfield.TextInputEditText;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class DialogEditProfileBinding implements ViewBinding {
@NonNull
private final ScrollView rootView;
@NonNull
public final MaterialButton buttonCancel;
@NonNull
public final MaterialButton buttonSave;
@NonNull
public final TextInputEditText editAge;
@NonNull
public final TextInputEditText editEmail;
@NonNull
public final TextInputEditText editName;
@NonNull
public final TextInputEditText editPassword;
@NonNull
public final TextInputEditText editUtente;
private DialogEditProfileBinding(@NonNull ScrollView rootView,
@NonNull MaterialButton buttonCancel, @NonNull MaterialButton buttonSave,
@NonNull TextInputEditText editAge, @NonNull TextInputEditText editEmail,
@NonNull TextInputEditText editName, @NonNull TextInputEditText editPassword,
@NonNull TextInputEditText editUtente) {
this.rootView = rootView;
this.buttonCancel = buttonCancel;
this.buttonSave = buttonSave;
this.editAge = editAge;
this.editEmail = editEmail;
this.editName = editName;
this.editPassword = editPassword;
this.editUtente = editUtente;
}
@Override
@NonNull
public ScrollView getRoot() {
return rootView;
}
@NonNull
public static DialogEditProfileBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static DialogEditProfileBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.dialog_edit_profile, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static DialogEditProfileBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_cancel;
MaterialButton buttonCancel = ViewBindings.findChildViewById(rootView, id);
if (buttonCancel == null) {
break missingId;
}
id = R.id.button_save;
MaterialButton buttonSave = ViewBindings.findChildViewById(rootView, id);
if (buttonSave == null) {
break missingId;
}
id = R.id.edit_age;
TextInputEditText editAge = ViewBindings.findChildViewById(rootView, id);
if (editAge == null) {
break missingId;
}
id = R.id.edit_email;
TextInputEditText editEmail = ViewBindings.findChildViewById(rootView, id);
if (editEmail == null) {
break missingId;
}
id = R.id.edit_name;
TextInputEditText editName = ViewBindings.findChildViewById(rootView, id);
if (editName == null) {
break missingId;
}
id = R.id.edit_password;
TextInputEditText editPassword = ViewBindings.findChildViewById(rootView, id);
if (editPassword == null) {
break missingId;
}
id = R.id.edit_utente;
TextInputEditText editUtente = ViewBindings.findChildViewById(rootView, id);
if (editUtente == null) {
break missingId;
}
return new DialogEditProfileBinding((ScrollView) rootView, buttonCancel, buttonSave, editAge,
editEmail, editName, editPassword, editUtente);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,93 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentAppointmentsBinding implements ViewBinding {
@NonNull
private final FrameLayout rootView;
@NonNull
public final FloatingActionButton fabAddAppointment;
@NonNull
public final RecyclerView recyclerAppointmentsFuture;
@NonNull
public final RecyclerView recyclerAppointmentsPast;
private FragmentAppointmentsBinding(@NonNull FrameLayout rootView,
@NonNull FloatingActionButton fabAddAppointment,
@NonNull RecyclerView recyclerAppointmentsFuture,
@NonNull RecyclerView recyclerAppointmentsPast) {
this.rootView = rootView;
this.fabAddAppointment = fabAddAppointment;
this.recyclerAppointmentsFuture = recyclerAppointmentsFuture;
this.recyclerAppointmentsPast = recyclerAppointmentsPast;
}
@Override
@NonNull
public FrameLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentAppointmentsBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentAppointmentsBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_appointments, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentAppointmentsBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.fab_add_appointment;
FloatingActionButton fabAddAppointment = ViewBindings.findChildViewById(rootView, id);
if (fabAddAppointment == null) {
break missingId;
}
id = R.id.recycler_appointments_future;
RecyclerView recyclerAppointmentsFuture = ViewBindings.findChildViewById(rootView, id);
if (recyclerAppointmentsFuture == null) {
break missingId;
}
id = R.id.recycler_appointments_past;
RecyclerView recyclerAppointmentsPast = ViewBindings.findChildViewById(rootView, id);
if (recyclerAppointmentsPast == null) {
break missingId;
}
return new FragmentAppointmentsBinding((FrameLayout) rootView, fabAddAppointment,
recyclerAppointmentsFuture, recyclerAppointmentsPast);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,114 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentHomeBinding implements ViewBinding {
@NonNull
private final ConstraintLayout rootView;
@NonNull
public final MaterialButton buttonBookAppointment;
@NonNull
public final MaterialCardView cardNextMedication;
@NonNull
public final TextView nextMedName;
@NonNull
public final TextView nextMedTime;
@NonNull
public final TextView textGreeting;
private FragmentHomeBinding(@NonNull ConstraintLayout rootView,
@NonNull MaterialButton buttonBookAppointment, @NonNull MaterialCardView cardNextMedication,
@NonNull TextView nextMedName, @NonNull TextView nextMedTime,
@NonNull TextView textGreeting) {
this.rootView = rootView;
this.buttonBookAppointment = buttonBookAppointment;
this.cardNextMedication = cardNextMedication;
this.nextMedName = nextMedName;
this.nextMedTime = nextMedTime;
this.textGreeting = textGreeting;
}
@Override
@NonNull
public ConstraintLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentHomeBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentHomeBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_home, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentHomeBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_book_appointment;
MaterialButton buttonBookAppointment = ViewBindings.findChildViewById(rootView, id);
if (buttonBookAppointment == null) {
break missingId;
}
id = R.id.card_next_medication;
MaterialCardView cardNextMedication = ViewBindings.findChildViewById(rootView, id);
if (cardNextMedication == null) {
break missingId;
}
id = R.id.next_med_name;
TextView nextMedName = ViewBindings.findChildViewById(rootView, id);
if (nextMedName == null) {
break missingId;
}
id = R.id.next_med_time;
TextView nextMedTime = ViewBindings.findChildViewById(rootView, id);
if (nextMedTime == null) {
break missingId;
}
id = R.id.text_greeting;
TextView textGreeting = ViewBindings.findChildViewById(rootView, id);
if (textGreeting == null) {
break missingId;
}
return new FragmentHomeBinding((ConstraintLayout) rootView, buttonBookAppointment,
cardNextMedication, nextMedName, nextMedTime, textGreeting);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,69 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentMedicationBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final RecyclerView recyclerMedication;
private FragmentMedicationBinding(@NonNull LinearLayout rootView,
@NonNull RecyclerView recyclerMedication) {
this.rootView = rootView;
this.recyclerMedication = recyclerMedication;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentMedicationBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentMedicationBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_medication, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentMedicationBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.recycler_medication;
RecyclerView recyclerMedication = ViewBindings.findChildViewById(rootView, id);
if (recyclerMedication == null) {
break missingId;
}
return new FragmentMedicationBinding((LinearLayout) rootView, recyclerMedication);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,123 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentProfileBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final MaterialButton buttonEditProfile;
@NonNull
public final MaterialButton buttonLogout;
@NonNull
public final TextView profileAge;
@NonNull
public final TextView profileEmail;
@NonNull
public final TextView profileName;
@NonNull
public final TextView profileUtente;
private FragmentProfileBinding(@NonNull LinearLayout rootView,
@NonNull MaterialButton buttonEditProfile, @NonNull MaterialButton buttonLogout,
@NonNull TextView profileAge, @NonNull TextView profileEmail, @NonNull TextView profileName,
@NonNull TextView profileUtente) {
this.rootView = rootView;
this.buttonEditProfile = buttonEditProfile;
this.buttonLogout = buttonLogout;
this.profileAge = profileAge;
this.profileEmail = profileEmail;
this.profileName = profileName;
this.profileUtente = profileUtente;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentProfileBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentProfileBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_profile, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentProfileBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_edit_profile;
MaterialButton buttonEditProfile = ViewBindings.findChildViewById(rootView, id);
if (buttonEditProfile == null) {
break missingId;
}
id = R.id.button_logout;
MaterialButton buttonLogout = ViewBindings.findChildViewById(rootView, id);
if (buttonLogout == null) {
break missingId;
}
id = R.id.profile_age;
TextView profileAge = ViewBindings.findChildViewById(rootView, id);
if (profileAge == null) {
break missingId;
}
id = R.id.profile_email;
TextView profileEmail = ViewBindings.findChildViewById(rootView, id);
if (profileEmail == null) {
break missingId;
}
id = R.id.profile_name;
TextView profileName = ViewBindings.findChildViewById(rootView, id);
if (profileName == null) {
break missingId;
}
id = R.id.profile_utente;
TextView profileUtente = ViewBindings.findChildViewById(rootView, id);
if (profileUtente == null) {
break missingId;
}
return new FragmentProfileBinding((LinearLayout) rootView, buttonEditProfile, buttonLogout,
profileAge, profileEmail, profileName, profileUtente);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,93 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.DatePicker;
import android.widget.LinearLayout;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.RecyclerView;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentScheduleAppointmentBinding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final Button btnConfirmAppointment;
@NonNull
public final DatePicker datePicker;
@NonNull
public final RecyclerView recyclerTimeSlots;
private FragmentScheduleAppointmentBinding(@NonNull LinearLayout rootView,
@NonNull Button btnConfirmAppointment, @NonNull DatePicker datePicker,
@NonNull RecyclerView recyclerTimeSlots) {
this.rootView = rootView;
this.btnConfirmAppointment = btnConfirmAppointment;
this.datePicker = datePicker;
this.recyclerTimeSlots = recyclerTimeSlots;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentScheduleAppointmentBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentScheduleAppointmentBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_schedule_appointment, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentScheduleAppointmentBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.btn_confirm_appointment;
Button btnConfirmAppointment = ViewBindings.findChildViewById(rootView, id);
if (btnConfirmAppointment == null) {
break missingId;
}
id = R.id.datePicker;
DatePicker datePicker = ViewBindings.findChildViewById(rootView, id);
if (datePicker == null) {
break missingId;
}
id = R.id.recycler_time_slots;
RecyclerView recyclerTimeSlots = ViewBindings.findChildViewById(rootView, id);
if (recyclerTimeSlots == null) {
break missingId;
}
return new FragmentScheduleAppointmentBinding((LinearLayout) rootView, btnConfirmAppointment,
datePicker, recyclerTimeSlots);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,125 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class FragmentSns24Binding implements ViewBinding {
@NonNull
private final LinearLayout rootView;
@NonNull
public final MaterialButton buttonCallSns;
@NonNull
public final Button buttonTriage;
@NonNull
public final CheckBox checkBreath;
@NonNull
public final CheckBox checkFever;
@NonNull
public final CheckBox checkPain;
@NonNull
public final TextView textTriageResult;
private FragmentSns24Binding(@NonNull LinearLayout rootView,
@NonNull MaterialButton buttonCallSns, @NonNull Button buttonTriage,
@NonNull CheckBox checkBreath, @NonNull CheckBox checkFever, @NonNull CheckBox checkPain,
@NonNull TextView textTriageResult) {
this.rootView = rootView;
this.buttonCallSns = buttonCallSns;
this.buttonTriage = buttonTriage;
this.checkBreath = checkBreath;
this.checkFever = checkFever;
this.checkPain = checkPain;
this.textTriageResult = textTriageResult;
}
@Override
@NonNull
public LinearLayout getRoot() {
return rootView;
}
@NonNull
public static FragmentSns24Binding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static FragmentSns24Binding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.fragment_sns24, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static FragmentSns24Binding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.button_call_sns;
MaterialButton buttonCallSns = ViewBindings.findChildViewById(rootView, id);
if (buttonCallSns == null) {
break missingId;
}
id = R.id.button_triage;
Button buttonTriage = ViewBindings.findChildViewById(rootView, id);
if (buttonTriage == null) {
break missingId;
}
id = R.id.check_breath;
CheckBox checkBreath = ViewBindings.findChildViewById(rootView, id);
if (checkBreath == null) {
break missingId;
}
id = R.id.check_fever;
CheckBox checkFever = ViewBindings.findChildViewById(rootView, id);
if (checkFever == null) {
break missingId;
}
id = R.id.check_pain;
CheckBox checkPain = ViewBindings.findChildViewById(rootView, id);
if (checkPain == null) {
break missingId;
}
id = R.id.text_triage_result;
TextView textTriageResult = ViewBindings.findChildViewById(rootView, id);
if (textTriageResult == null) {
break missingId;
}
return new FragmentSns24Binding((LinearLayout) rootView, buttonCallSns, buttonTriage,
checkBreath, checkFever, checkPain, textTriageResult);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,89 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ItemAppointmentBinding implements ViewBinding {
@NonNull
private final MaterialCardView rootView;
@NonNull
public final TextView textDate;
@NonNull
public final TextView textTime;
@NonNull
public final TextView textType;
private ItemAppointmentBinding(@NonNull MaterialCardView rootView, @NonNull TextView textDate,
@NonNull TextView textTime, @NonNull TextView textType) {
this.rootView = rootView;
this.textDate = textDate;
this.textTime = textTime;
this.textType = textType;
}
@Override
@NonNull
public MaterialCardView getRoot() {
return rootView;
}
@NonNull
public static ItemAppointmentBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ItemAppointmentBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.item_appointment, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ItemAppointmentBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.text_date;
TextView textDate = ViewBindings.findChildViewById(rootView, id);
if (textDate == null) {
break missingId;
}
id = R.id.text_time;
TextView textTime = ViewBindings.findChildViewById(rootView, id);
if (textTime == null) {
break missingId;
}
id = R.id.text_type;
TextView textType = ViewBindings.findChildViewById(rootView, id);
if (textType == null) {
break missingId;
}
return new ItemAppointmentBinding((MaterialCardView) rootView, textDate, textTime, textType);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,112 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.CheckBox;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import androidx.viewbinding.ViewBindings;
import com.example.cuida.R;
import com.google.android.material.card.MaterialCardView;
import java.lang.NullPointerException;
import java.lang.Override;
import java.lang.String;
public final class ItemMedicationBinding implements ViewBinding {
@NonNull
private final MaterialCardView rootView;
@NonNull
public final CheckBox checkboxTaken;
@NonNull
public final TextView textMedDosage;
@NonNull
public final TextView textMedName;
@NonNull
public final TextView textMedNotes;
@NonNull
public final TextView textMedTime;
private ItemMedicationBinding(@NonNull MaterialCardView rootView, @NonNull CheckBox checkboxTaken,
@NonNull TextView textMedDosage, @NonNull TextView textMedName,
@NonNull TextView textMedNotes, @NonNull TextView textMedTime) {
this.rootView = rootView;
this.checkboxTaken = checkboxTaken;
this.textMedDosage = textMedDosage;
this.textMedName = textMedName;
this.textMedNotes = textMedNotes;
this.textMedTime = textMedTime;
}
@Override
@NonNull
public MaterialCardView getRoot() {
return rootView;
}
@NonNull
public static ItemMedicationBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ItemMedicationBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.item_medication, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ItemMedicationBinding bind(@NonNull View rootView) {
// The body of this method is generated in a way you would not otherwise write.
// This is done to optimize the compiled bytecode for size and performance.
int id;
missingId: {
id = R.id.checkbox_taken;
CheckBox checkboxTaken = ViewBindings.findChildViewById(rootView, id);
if (checkboxTaken == null) {
break missingId;
}
id = R.id.text_med_dosage;
TextView textMedDosage = ViewBindings.findChildViewById(rootView, id);
if (textMedDosage == null) {
break missingId;
}
id = R.id.text_med_name;
TextView textMedName = ViewBindings.findChildViewById(rootView, id);
if (textMedName == null) {
break missingId;
}
id = R.id.text_med_notes;
TextView textMedNotes = ViewBindings.findChildViewById(rootView, id);
if (textMedNotes == null) {
break missingId;
}
id = R.id.text_med_time;
TextView textMedTime = ViewBindings.findChildViewById(rootView, id);
if (textMedTime == null) {
break missingId;
}
return new ItemMedicationBinding((MaterialCardView) rootView, checkboxTaken, textMedDosage,
textMedName, textMedNotes, textMedTime);
}
String missingId = rootView.getResources().getResourceName(id);
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
}
}

View File

@@ -0,0 +1,59 @@
// Generated by view binder compiler. Do not edit!
package com.example.cuida.databinding;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import com.example.cuida.R;
import com.google.android.material.button.MaterialButton;
import java.lang.NullPointerException;
import java.lang.Override;
public final class ItemTimeSlotBinding implements ViewBinding {
@NonNull
private final MaterialButton rootView;
@NonNull
public final MaterialButton btnTimeSlot;
private ItemTimeSlotBinding(@NonNull MaterialButton rootView,
@NonNull MaterialButton btnTimeSlot) {
this.rootView = rootView;
this.btnTimeSlot = btnTimeSlot;
}
@Override
@NonNull
public MaterialButton getRoot() {
return rootView;
}
@NonNull
public static ItemTimeSlotBinding inflate(@NonNull LayoutInflater inflater) {
return inflate(inflater, null, false);
}
@NonNull
public static ItemTimeSlotBinding inflate(@NonNull LayoutInflater inflater,
@Nullable ViewGroup parent, boolean attachToParent) {
View root = inflater.inflate(R.layout.item_time_slot, parent, false);
if (attachToParent) {
parent.addView(root);
}
return bind(root);
}
@NonNull
public static ItemTimeSlotBinding bind(@NonNull View rootView) {
if (rootView == null) {
throw new NullPointerException("rootView");
}
MaterialButton btnTimeSlot = (MaterialButton) rootView;
return new ItemTimeSlotBinding((MaterialButton) rootView, btnTimeSlot);
}
}

View File

@@ -0,0 +1,43 @@
<navigation
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mobile_navigation"
app:startDestination="@+id/navigation_home" >
<fragment
android:id="@+id/navigation_home"
android:name="com.example.cuida.ui.home.HomeFragment"
android:label="@string/title_home"
tools:layout="@layout/fragment_home" />
<fragment
android:id="@+id/navigation_appointments"
android:name="com.example.cuida.ui.appointments.AppointmentsFragment"
android:label="@string/title_appointments"
tools:layout="@layout/fragment_appointments" >
<action
android:id="@+id/action_appointments_to_schedule"
app:destination="@id/navigation_schedule_appointment" />
</fragment>
<fragment
android:id="@+id/navigation_medication"
android:name="com.example.cuida.ui.medication.MedicationFragment"
android:label="@string/title_medication"
tools:layout="@layout/fragment_medication" />
<fragment
android:id="@+id/navigation_sns24"
android:name="com.example.cuida.ui.sns24.Sns24Fragment"
android:label="@string/title_sns24"
tools:layout="@layout/fragment_sns24" />
<fragment
android:id="@+id/navigation_profile"
android:name="com.example.cuida.ui.profile.ProfileFragment"
android:label="@string/title_profile"
tools:layout="@layout/fragment_profile" />
<fragment
android:id="@+id/navigation_schedule_appointment"
android:name="com.example.cuida.ui.schedule.ScheduleAppointmentFragment"
android:label="Agendar Consulta"
tools:layout="@layout/fragment_schedule_appointment" />
</navigation>