MDRole
public enum MDRole : String, Codable
Roles returned by the MangaDex API in token information
TODO: This list might not be accurate as it is not described in the API documentation
-
The user is anonymous
Declaration
Swift
case anonymous = "IS_ANONYMOUS"
-
The user is authenticated without an account
Note
Logged-in users still have this “role” as roles stackDeclaration
Swift
case authenticatedAnonymously = "IS_AUTHENTICATED_ANONYMOUSLY"
-
The user is logged-in to a validated account
Declaration
Swift
case authenticatedFully = "IS_AUTHENTICATED_FULLY"
-
The user is logged-in to an account and will be remebered
Declaration
Swift
case authenticatedRemembered = "IS_AUTHENTICATED_REMEMBERED"
-
The user was authenticated using a JSON Web Token
Declaration
Swift
case authenticatedJwt = "IS_JWT_AUTHENTICATED"
-
The user is a guest
Declaration
Swift
case guest = "ROLE_GUEST"
-
The user is banned
Declaration
Swift
case banned = "ROLE_BANNED"
-
The user is a member
Declaration
Swift
case member = "ROLE_MEMBER"
-
The user is a member of at least one group
Declaration
Swift
case groupMember = "ROLE_GROUP_MEMBER"
-
The user is leader of at least one group
Declaration
Swift
case groupLeader = "ROLE_GROUP_LEADER"
-
The user is a power uploader
Declaration
Swift
case powerUploader = "ROLE_POWER_UPLOADER"
-
The user is a VIP member
Declaration
Swift
case vip = "ROLE_VIP"
-
The user is in charge of Public Relations for MangaDex
Declaration
Swift
case publicRelations = "ROLE_PUBLIC_RELATIONS"
-
The user is in charge of moderating the MangaDex forum
Declaration
Swift
case forumModerator = "ROLE_FORUM_MODERATOR"
-
The user is a developer for MangaDex
Declaration
Swift
case developer = "ROLE_DEVELOPER"
-
The user is in charge of moderating the MangaDex website
Declaration
Swift
case moderator = "ROLE_MODERATOR"
-
The user is a MangaDex administrator
Declaration
Swift
case administrator = "ROLE_ADMINISTRATOR"