toggle menu
Dermato.AI
androidJvm
switch theme
search in API
Dermato.AI
/
com.dermatoai.repository
/
AppointmentRepository
Appointment
Repository
class
AppointmentRepository
@
Inject
constructor
(
dao
:
AppointmentRecordDAO
,
fetch
:
DermatoBackendEndpoint
)
Members
Constructors
Appointment
Repository
Link copied to clipboard
@
Inject
constructor
(
dao
:
AppointmentRecordDAO
,
fetch
:
DermatoBackendEndpoint
)
Functions
create
Appointment
Link copied to clipboard
suspend
fun
createAppointment
(
userId
:
String
,
doctor
:
Doctor
,
appointmentDate
:
Date
)
delete
Upcoming
Appointment
Link copied to clipboard
suspend
fun
deleteUpcomingAppointment
(
userId
:
String
,
id
:
String
)
get
All
Appointments
Link copied to clipboard
fun
getAllAppointments
(
userId
:
String
)
:
Flow
<
List
<
AppointmentRecord
>
>
get
All
Doctors
Link copied to clipboard
suspend
fun
getAllDoctors
(
)
:
DoctorsResponse
get
Upcoming
Appointment
Link copied to clipboard
fun
getUpcomingAppointment
(
userId
:
String
)
:
Flow
<
AppointmentRecord
?
>