-
Notifications
You must be signed in to change notification settings - Fork 0
/
diagram.pu
68 lines (57 loc) · 1.53 KB
/
diagram.pu
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
@startuml redditech
rectangle FrontEnd {
}
rectangle redditApi {
}
class Profile {
+String username
+String imageUrl
+String? bannerUrl
+Int karma
+Profile(String, String, Stirng?, int)
+Future getUserProfile(String user) async
+Future<Profile> getMyProfile()
}
class SubReddit {
+String name
+Stirng description
+String imageUrl
+String bannerUrl
+int nbSub
+List<Post> posts
+subReddit(String name)
+Future unsubscribe() async
+Future subscribe() async
+Future<bool> getInfo() async
+Future<bool> getTop() async
+Future<bool> getNew() async
+Future<bool> getHot() async
-void _extractPosts(Map<String, dynamic> json)
+extern Future<List<subReddit>> getMySubscriptions() async
}
class Post {
+String title
+String? subtext
+String? imageUrl
+String subReddit
+String author
+String subRedImg
+String id
+bool nsfw
+int upvotes
+bool? vote
+Post(...)
+Future upvote(int) async
+extern Future<List<Post>> getRandomPosts(List<subReddit> subs) async
}
Profile o-- redditApi
Post o--o redditApi
SubReddit o-- redditApi
Profile --> FrontEnd
SubReddit --> FrontEnd
Post --> FrontEnd
Post *-- SubReddit
allowmixing
actor user
user "Sends interactions" <..> FrontEnd : < Shows app
@enduml