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 be nil if the author was never modified after being created

    Declaration

    Swift

    public let updatedDate: Date?
  • The version of this type of object in the MangaDex API

    Declaration

    Swift

    public let version: Int
  • Convenience init used for create/update endpoints

    Declaration

    Swift

    public init(name: String)
  • Custom encode implementation to convert this structure to a JSON object

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws