MDAuthor
public struct MDAuthor
extension MDAuthor: Decodable
extension MDAuthor: Encodable
Structure representing an author returned by MangaDex
This is passed in the data property of an MDObject
-
The author’s name
Declaration
Swift
public let name: String -
The URL of this author’s cover image
Declaration
Swift
public var imageURL: URL? -
The author’s biography
Declaration
Swift
public let biography: [MDLocalizedString] -
The date at which this author entry was created on MangaDex
Declaration
Swift
public let createdDate: Date -
The date of the last update made to this author’s information on MangaDex
Note
This property will benilif the author was never modified after being createdDeclaration
Swift
public let updatedDate: Date? -
The version of this type of object in the MangaDex API
Declaration
Swift
public let version: Int -
Convenience
initused for create/update endpointsDeclaration
Swift
public init(name: String) -
Custom
encodeimplementation to convert this structure to a JSON objectDeclaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
MDAuthor Structure Reference