.
This commit is contained in:
@@ -187,6 +187,36 @@ public final class AppointmentDao_Impl implements AppointmentDao {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getBookedTimesForDate(final String date) {
|
||||
final String _sql = "SELECT time FROM appointments WHERE date = ?";
|
||||
final RoomSQLiteQuery _statement = RoomSQLiteQuery.acquire(_sql, 1);
|
||||
int _argIndex = 1;
|
||||
if (date == null) {
|
||||
_statement.bindNull(_argIndex);
|
||||
} else {
|
||||
_statement.bindString(_argIndex, date);
|
||||
}
|
||||
__db.assertNotSuspendingTransaction();
|
||||
final Cursor _cursor = DBUtil.query(__db, _statement, false, null);
|
||||
try {
|
||||
final List<String> _result = new ArrayList<String>(_cursor.getCount());
|
||||
while (_cursor.moveToNext()) {
|
||||
final String _item;
|
||||
if (_cursor.isNull(0)) {
|
||||
_item = null;
|
||||
} else {
|
||||
_item = _cursor.getString(0);
|
||||
}
|
||||
_result.add(_item);
|
||||
}
|
||||
return _result;
|
||||
} finally {
|
||||
_cursor.close();
|
||||
_statement.release();
|
||||
}
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public static List<Class<?>> getRequiredConverters() {
|
||||
return Collections.emptyList();
|
||||
|
||||
@@ -12,6 +12,7 @@ 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.checkbox.MaterialCheckBox;
|
||||
import com.google.android.material.textfield.TextInputEditText;
|
||||
import java.lang.NullPointerException;
|
||||
import java.lang.Override;
|
||||
@@ -21,6 +22,9 @@ public final class ActivityLoginBinding implements ViewBinding {
|
||||
@NonNull
|
||||
private final ScrollView rootView;
|
||||
|
||||
@NonNull
|
||||
public final MaterialCheckBox checkboxRememberMe;
|
||||
|
||||
@NonNull
|
||||
public final TextInputEditText emailEditText;
|
||||
|
||||
@@ -37,10 +41,11 @@ public final class ActivityLoginBinding implements ViewBinding {
|
||||
public final TextView registerLink;
|
||||
|
||||
private ActivityLoginBinding(@NonNull ScrollView rootView,
|
||||
@NonNull TextInputEditText emailEditText, @NonNull TextView forgotPasswordLink,
|
||||
@NonNull MaterialButton loginButton, @NonNull TextInputEditText passwordEditText,
|
||||
@NonNull TextView registerLink) {
|
||||
@NonNull MaterialCheckBox checkboxRememberMe, @NonNull TextInputEditText emailEditText,
|
||||
@NonNull TextView forgotPasswordLink, @NonNull MaterialButton loginButton,
|
||||
@NonNull TextInputEditText passwordEditText, @NonNull TextView registerLink) {
|
||||
this.rootView = rootView;
|
||||
this.checkboxRememberMe = checkboxRememberMe;
|
||||
this.emailEditText = emailEditText;
|
||||
this.forgotPasswordLink = forgotPasswordLink;
|
||||
this.loginButton = loginButton;
|
||||
@@ -75,6 +80,12 @@ public final class ActivityLoginBinding implements ViewBinding {
|
||||
// This is done to optimize the compiled bytecode for size and performance.
|
||||
int id;
|
||||
missingId: {
|
||||
id = R.id.checkbox_remember_me;
|
||||
MaterialCheckBox checkboxRememberMe = ViewBindings.findChildViewById(rootView, id);
|
||||
if (checkboxRememberMe == null) {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
id = R.id.email_edit_text;
|
||||
TextInputEditText emailEditText = ViewBindings.findChildViewById(rootView, id);
|
||||
if (emailEditText == null) {
|
||||
@@ -105,8 +116,8 @@ public final class ActivityLoginBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
return new ActivityLoginBinding((ScrollView) rootView, emailEditText, forgotPasswordLink,
|
||||
loginButton, passwordEditText, registerLink);
|
||||
return new ActivityLoginBinding((ScrollView) rootView, checkboxRememberMe, emailEditText,
|
||||
forgotPasswordLink, loginButton, passwordEditText, registerLink);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
|
||||
@@ -11,7 +11,6 @@ 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;
|
||||
@@ -20,9 +19,6 @@ public final class FragmentAppointmentsBinding implements ViewBinding {
|
||||
@NonNull
|
||||
private final FrameLayout rootView;
|
||||
|
||||
@NonNull
|
||||
public final FloatingActionButton fabAddAppointment;
|
||||
|
||||
@NonNull
|
||||
public final RecyclerView recyclerAppointmentsFuture;
|
||||
|
||||
@@ -30,11 +26,9 @@ public final class FragmentAppointmentsBinding implements ViewBinding {
|
||||
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;
|
||||
}
|
||||
@@ -66,12 +60,6 @@ public final class FragmentAppointmentsBinding implements ViewBinding {
|
||||
// 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) {
|
||||
@@ -84,8 +72,8 @@ public final class FragmentAppointmentsBinding implements ViewBinding {
|
||||
break missingId;
|
||||
}
|
||||
|
||||
return new FragmentAppointmentsBinding((FrameLayout) rootView, fabAddAppointment,
|
||||
recyclerAppointmentsFuture, recyclerAppointmentsPast);
|
||||
return new FragmentAppointmentsBinding((FrameLayout) rootView, recyclerAppointmentsFuture,
|
||||
recyclerAppointmentsPast);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
|
||||
@@ -4,10 +4,7 @@ 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;
|
||||
@@ -25,32 +22,10 @@ public final class FragmentSns24Binding implements ViewBinding {
|
||||
@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) {
|
||||
@NonNull MaterialButton buttonCallSns) {
|
||||
this.rootView = rootView;
|
||||
this.buttonCallSns = buttonCallSns;
|
||||
this.buttonTriage = buttonTriage;
|
||||
this.checkBreath = checkBreath;
|
||||
this.checkFever = checkFever;
|
||||
this.checkPain = checkPain;
|
||||
this.textTriageResult = textTriageResult;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -86,38 +61,7 @@ public final class FragmentSns24Binding implements ViewBinding {
|
||||
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);
|
||||
return new FragmentSns24Binding((LinearLayout) rootView, buttonCallSns);
|
||||
}
|
||||
String missingId = rootView.getResources().getResourceName(id);
|
||||
throw new NullPointerException("Missing required view with ID: ".concat(missingId));
|
||||
|
||||
@@ -8,7 +8,13 @@ app:startDestination="@+id/navigation_home" >
|
||||
android:id="@+id/navigation_home"
|
||||
android:name="com.example.cuida.ui.home.HomeFragment"
|
||||
android:label="@string/title_home"
|
||||
tools:layout="@layout/fragment_home" />
|
||||
tools:layout="@layout/fragment_home" >
|
||||
|
||||
<action
|
||||
android:id="@+id/action_home_to_schedule_appointment"
|
||||
app:destination="@id/navigation_schedule_appointment" />
|
||||
|
||||
</fragment>
|
||||
<fragment
|
||||
android:id="@+id/navigation_appointments"
|
||||
android:name="com.example.cuida.ui.appointments.AppointmentsFragment"
|
||||
|
||||
Reference in New Issue
Block a user