Protocols
The following protocols are available globally.
-
A protocol to which the main
See moreInternetArchive
class conformsDeclaration
Swift
public protocol InternetArchiveProtocol
-
A protocol to which the main
See moreInternetArchive.URLGenerator
class conformsDeclaration
Swift
public protocol InternetArchiveURLGeneratorProtocol
-
A protocol for abstracting URL search query strings
All of the search queries components like Query and DateQuery conform to this
See moreDeclaration
Swift
public protocol InternetArchiveURLStringProtocol
-
A protocol for abstracting URL query items for a search
See moreDeclaration
Swift
public protocol InternetArchiveURLQueryItemProtocol
-
Declaration
Swift
public protocol InternetArchiveQueryClauseProtocol : InternetArchiveURLStringProtocol
-
A protocol to abstract Internet Archive properties to native Swift types
This protocol allows converting different field types to more specific, native Swift types. For example, the Internet Archive metadata
length
field can be represented as aTimeInterval
so anIATimeInterval
knows how to convert323.4
(seconds) or5:23
(hh:mm:ss) to aTimeInterval
A
ModelFieldProtocol
class is instantiated with aString
and its value accessed through thevalue
property.Example Usage
See morelet intField: IAInt = IAInt(string: "3") intField.value => 3
Declaration
Swift
public protocol ModelFieldProtocol : Decodable