-
Notifications
You must be signed in to change notification settings - Fork 0
/
RepositoryStructure.puml
69 lines (53 loc) · 1.21 KB
/
RepositoryStructure.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@startuml
abstract class Repository
Repository <|-- MedDataRepository
Repository <|-- DoctorDataRepository
Repository <|-- DataRepository
HiveObject <|-- MedData
MedData o-- MedDataBox
MedDataBox o-- MedDataRepository
HiveObject <|-- DoctorData
DoctorData o-- DoctorDataBox
DoctorDataBox o-- DoctorDataRepository
MedDataRepository o-- DataRepository
DoctorDataRepository o-- DataRepository
abstract Repository {
Future<void> save(T newObject);
Future<void> delete(T objectToDelete);
Future<List<T>> getAll();
}
class DataRepository {
_medData = locator<MedDataRepository>();
_doctorData = locator<DoctorDataRepository>();
}
class HiveObject{}
class MedDataRepository {
-MedDataBox _medDataBox;
}
class MedDataBox {
-Box _box;
initialiseHive();
Future<Box> get box();
}
class MedData {
int id;
String rxcui;
String name;
String mfg;
String imageURL;
List<String> info;
List<String> warnings;
int doctorId;
int compareTo(MedData otherMed);
String toString({bool warningMsgs: false})
}
class DoctorData {
int id;
String name;
String phone;
String toString();
}
class DoctorDataRepository {
-DoctorDataBox _doctorDataBox;
}
@enduml