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
mod create;
mod delete;
mod follow;
mod get;
pub(crate) mod manga_feed;
mod unfollow;
mod update;
use crate::v5::custom_list::create::CreateCustomListBuilder;
use crate::v5::custom_list::delete::DeleteCustomListBuilder;
use crate::v5::custom_list::follow::FollowCustomListBuilder;
use crate::v5::custom_list::get::GetCustomListBuilder;
use crate::v5::custom_list::manga_feed::CustomListMangaFeedBuilder;
use crate::v5::custom_list::unfollow::UnfollowCustomListBuilder;
use crate::v5::custom_list::update::UpdateCustomListBuilder;
use crate::v5::manga::add_to_custom_list::AddMangaToCustomListBuilder;
use crate::v5::manga::remove_from_custom_list::RemoveMangaFromCustomListBuilder;
use crate::v5::user::custom_lists::UserCustomListsBuilder;
use crate::v5::user::my_custom_lists::MyCustomListsBuilder;
use crate::HttpClientRef;
#[derive(Debug)]
pub struct CustomListBuilder {
http_client: HttpClientRef,
}
impl CustomListBuilder {
#[doc(hidden)]
pub(crate) fn new(http_client: HttpClientRef) -> Self {
Self { http_client }
}
pub fn create(&self) -> CreateCustomListBuilder {
CreateCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn get(&self) -> GetCustomListBuilder {
GetCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn update(&self) -> UpdateCustomListBuilder {
UpdateCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn delete(&self) -> DeleteCustomListBuilder {
DeleteCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn my_custom_lists(&self) -> MyCustomListsBuilder {
MyCustomListsBuilder::default().http_client(self.http_client.clone())
}
pub fn user_custom_lists(&self) -> UserCustomListsBuilder {
UserCustomListsBuilder::default().http_client(self.http_client.clone())
}
pub fn manga_feed(&self) -> CustomListMangaFeedBuilder {
CustomListMangaFeedBuilder::default().http_client(self.http_client.clone())
}
pub fn add_manga(&self) -> AddMangaToCustomListBuilder {
AddMangaToCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn remove_manga(&self) -> RemoveMangaFromCustomListBuilder {
RemoveMangaFromCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn follow(&self) -> FollowCustomListBuilder {
FollowCustomListBuilder::default().http_client(self.http_client.clone())
}
pub fn unfollow(&self) -> UnfollowCustomListBuilder {
UnfollowCustomListBuilder::default().http_client(self.http_client.clone())
}
}