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
mod delete;
mod get;
pub(crate) mod list;
pub(crate) mod mark_batch;
mod mark_read;
mod mark_unread;
mod update;
use crate::v5::chapter::delete::DeleteChapterBuilder;
use crate::v5::chapter::get::GetChapterBuilder;
use crate::v5::chapter::list::ListChapterBuilder;
use crate::v5::chapter::mark_batch::MarkChapterBatchBuilder;
use crate::v5::chapter::mark_read::MarkChapterReadBuilder;
use crate::v5::chapter::mark_unread::MarkChapterUnreadBuilder;
use crate::v5::chapter::update::UpdateChapterBuilder;
use crate::v5::user::followed_manga_feed::GetFollowedMangaFeedBuilder;
use crate::HttpClientRef;
#[derive(Debug)]
pub struct ChapterBuilder {
http_client: HttpClientRef,
}
impl ChapterBuilder {
#[doc(hidden)]
pub(crate) fn new(http_client: HttpClientRef) -> Self {
Self { http_client }
}
pub fn list(&self) -> ListChapterBuilder {
ListChapterBuilder::default().http_client(self.http_client.clone())
}
pub fn search(&self) -> ListChapterBuilder {
self.list()
}
pub fn get(&self) -> GetChapterBuilder {
GetChapterBuilder::default().http_client(self.http_client.clone())
}
pub fn view(&self) -> GetChapterBuilder {
self.get()
}
pub fn update(&self) -> UpdateChapterBuilder {
UpdateChapterBuilder::default().http_client(self.http_client.clone())
}
pub fn delete(&self) -> DeleteChapterBuilder {
DeleteChapterBuilder::default().http_client(self.http_client.clone())
}
pub fn mark_batch(&self) -> MarkChapterBatchBuilder {
MarkChapterBatchBuilder::default().http_client(self.http_client.clone())
}
pub fn mark_read(&self) -> MarkChapterReadBuilder {
MarkChapterReadBuilder::default().http_client(self.http_client.clone())
}
pub fn mark_unread(&self) -> MarkChapterUnreadBuilder {
MarkChapterUnreadBuilder::default().http_client(self.http_client.clone())
}
pub fn followed_manga_feed(&self) -> GetFollowedMangaFeedBuilder {
GetFollowedMangaFeedBuilder::default().http_client(self.http_client.clone())
}
}