MDClient class
Main class containing all the communication with the API
Properties
Methods
-
addToCustomList(
String customListId, String mangaId) → Future< void> - Adds a manga (specified by its ID) to the custom list specified by its ID
-
createCustomList(
String name, {bool isPublic = true, List< String> mangaUuids = const []}) → Future<String> - Creates a customlist for the logged in user
-
deleteCustomList(
String id) → Future< void> - Deletes the customlist by ID
-
followedGroups(
) → Future< List< Group> > - Returns logged in user's followed Groups as a List
-
followedManga(
) → Future< List< Manga> > - Returns a List of Manga of the currently logged in user
-
followManga(
String id) → Future< void> - Follows a Manga as the logged in user
-
generateChapter(
dynamic r) → Future< Map< String, List< >String> > - Helper function for generating chapter URL
-
getChapter(
String? uuid, {bool useLogin = false, String? mangaId, String? mangaVolume, String? mangaChapter}) → Future< Chapter?> - Gets the chapter specified by the UUID OR allows searching for chapter by mangaId + mangaVolume and mangaChapter
-
getCovers(
String mangaUuid, {bool useLogin = false}) → Future< List< String> ?> -
Gets
10
of available cover images for a manga -
getGroup(
String uuid, {bool useLogin = false}) → Future< Group?> - Gets information about a Scanlation Group
-
getListFeed(
dynamic id) → Future< List< Chapter> > - Gets a CustomList chapter feed
-
getManga(
String uuid, {bool appendChapters = false, List< String> translatedLang = const [], bool useLogin = false}) → Future<Manga?> - Gets information about manga
-
getMangaFeed(
{List< String> translatedLanguages = const []}) → Future<List< Chapter> > - Returns the latest chapters of the currently logged in user's followed manga
-
getUser(
String uuid, {bool useLogin = false}) → Future< User?> - Gets user
-
getUsersLists(
) → Future< List< GenericObject> > - Gets logged in user's CustomLists
-
loggedInUser(
) → Future< User?> - Returns User object containing info about the logged in user
-
login(
String username, String password) → Future< void> - Gets the JWT and refresh token through the API
-
logout(
) → Future< void> - Invalidates current sesssion
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
refreshToken(
) → void - Refreshes the auth token using the saved refresh token
-
removeFromCustomList(
String customListId, String mangaId) → Future< void> - Removes a manga (specified by its ID) from the custom list specified by its ID
-
search(
{String mangaTitle = '', List< String> authors = const [], List<String> includedTags = const [], List<String> excludedTags = const [], List<String> status = const [], List<String> demographic = const [], bool useLogin = false}) → Future<List< Manga> > - Search for manga
-
searchGroups(
{bool useLogin = false, String name = '', List< String> ids = const []}) → Future<List< Group> > - Searches for groups with the given parameters
-
setReadingStatus(
String id, String readingStatus) → Future< void> - Allows you to update the reading status of a certain manga Throws an Exception if something goes wrong
-
solveCaptcha(
String captchaResult) → Future< void> - Sends the captcha result to the API server
-
toString(
) → String -
A string representation of this object.
inherited
-
unfollowManga(
String id) → Future< void> - Unfollows a Manga as the logged in user
-
validateToken(
) → Future< bool> -
Validates token using the
/auth/check
endpoint
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited