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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
pub(crate) mod add_to_custom_list;
mod aggregate;
mod create;
mod create_relation;
mod delete;
mod delete_relation;
mod feed;
mod follow;
mod get;
mod get_draft;
mod get_manga_read_chapters;
mod get_read_chapters;
pub(crate) mod list;
mod list_drafts;
mod list_relations;
mod list_tags;
mod random;
mod reading_status;
mod reading_statuses;
pub(crate) mod remove_from_custom_list;
mod submit_draft;
mod unfollow;
mod update;
mod update_reading_status;
use crate::v5::manga::add_to_custom_list::AddMangaToCustomListBuilder;
use crate::v5::manga::aggregate::GetMangaAggregateBuilder;
use crate::v5::manga::create::CreateMangaBuilder;
use crate::v5::manga::create_relation::CreateMangaRelationBuilder;
use crate::v5::manga::delete::DeleteMangaBuilder;
use crate::v5::manga::delete_relation::DeleteMangaRelationBuilder;
use crate::v5::manga::feed::GetMangaFeedBuilder;
use crate::v5::manga::follow::FollowMangaBuilder;
use crate::v5::manga::get::GetMangaBuilder;
use crate::v5::manga::get_draft::GetMangaDraftBuilder;
use crate::v5::manga::get_manga_read_chapters::GetMangaReadChaptersBuilder;
use crate::v5::manga::get_read_chapters::GetReadChaptersBuilder;
use crate::v5::manga::list::ListMangaBuilder;
use crate::v5::manga::list_drafts::ListMangaDraftsBuilder;
use crate::v5::manga::list_relations::ListMangaRelationsBuilder;
use crate::v5::manga::list_tags::ListTagsBuilder;
use crate::v5::manga::random::GetRandomMangaBuilder;
use crate::v5::manga::reading_status::MangaReadingStatusBuilder;
use crate::v5::manga::reading_statuses::MangaReadingStatusesBuilder;
use crate::v5::manga::remove_from_custom_list::RemoveMangaFromCustomListBuilder;
use crate::v5::manga::submit_draft::SubmitMangaDraftBuilder;
use crate::v5::manga::unfollow::UnfollowMangaBuilder;
use crate::v5::manga::update::UpdateMangaBuilder;
use crate::v5::manga::update_reading_status::UpdateMangaReadingStatusBuilder;
use crate::v5::user::followed_manga_feed::GetFollowedMangaFeedBuilder;
use crate::HttpClientRef;
#[derive(Debug)]
pub struct MangaBuilder {
http_client: HttpClientRef,
}
impl MangaBuilder {
#[doc(hidden)]
pub(crate) fn new(http_client: HttpClientRef) -> Self {
Self { http_client }
}
pub fn list(&self) -> ListMangaBuilder {
ListMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn search(&self) -> ListMangaBuilder {
self.list()
}
pub fn aggregate(&self) -> GetMangaAggregateBuilder {
GetMangaAggregateBuilder::default().http_client(self.http_client.clone())
}
pub fn get(&self) -> GetMangaBuilder {
GetMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn view(&self) -> GetMangaBuilder {
self.get()
}
pub fn update(&self) -> UpdateMangaBuilder {
UpdateMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn delete(&self) -> DeleteMangaBuilder {
DeleteMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn add_to_custom_list(&self) -> AddMangaToCustomListBuilder {
AddMangaToCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn remove_from_custom_list(&self) -> RemoveMangaFromCustomListBuilder {
RemoveMangaFromCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn followed_manga_feed(&self) -> GetFollowedMangaFeedBuilder {
GetFollowedMangaFeedBuilder::default().http_client(self.http_client.clone())
}
pub fn follow(&self) -> FollowMangaBuilder {
FollowMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn unfollow(&self) -> UnfollowMangaBuilder {
UnfollowMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn feed(&self) -> GetMangaFeedBuilder {
GetMangaFeedBuilder::default().http_client(self.http_client.clone())
}
pub fn random(&self) -> GetRandomMangaBuilder {
GetRandomMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn create(&self) -> CreateMangaBuilder {
CreateMangaBuilder::default().http_client(self.http_client.clone())
}
pub fn get_manga_read_chapters(&self) -> GetMangaReadChaptersBuilder {
GetMangaReadChaptersBuilder::default().http_client(self.http_client.clone())
}
pub fn get_read_chapters(&self) -> GetReadChaptersBuilder {
GetReadChaptersBuilder::default().http_client(self.http_client.clone())
}
pub fn list_tags(&self) -> ListTagsBuilder {
ListTagsBuilder::default().http_client(self.http_client.clone())
}
pub fn reading_status(&self) -> MangaReadingStatusBuilder {
MangaReadingStatusBuilder::default().http_client(self.http_client.clone())
}
pub fn reading_statuses(&self) -> MangaReadingStatusesBuilder {
MangaReadingStatusesBuilder::default().http_client(self.http_client.clone())
}
pub fn update_reading_status(&self) -> UpdateMangaReadingStatusBuilder {
UpdateMangaReadingStatusBuilder::default().http_client(self.http_client.clone())
}
pub fn get_draft(&self) -> GetMangaDraftBuilder {
GetMangaDraftBuilder::default().http_client(self.http_client.clone())
}
pub fn submit_draft(&self) -> SubmitMangaDraftBuilder {
SubmitMangaDraftBuilder::default().http_client(self.http_client.clone())
}
pub fn list_drafts(&self) -> ListMangaDraftsBuilder {
ListMangaDraftsBuilder::default().http_client(self.http_client.clone())
}
pub fn search_drafts(&self) -> ListMangaDraftsBuilder {
self.list_drafts()
}
pub fn list_relations(&self) -> ListMangaRelationsBuilder {
ListMangaRelationsBuilder::default().http_client(self.http_client.clone())
}
pub fn create_relation(&self) -> CreateMangaRelationBuilder {
CreateMangaRelationBuilder::default().http_client(self.http_client.clone())
}
pub fn delete_relation(&self) -> DeleteMangaRelationBuilder {
DeleteMangaRelationBuilder::default().http_client(self.http_client.clone())
}
}