BKArticle
public struct BKArticle : Equatable
Bilibili article, identified by unique cv id.
-
The unique identifier of the article.
Declaration
Swift
public let id: Int -
Initialize a BKArticle with its id.
Declaration
Swift
public init(cv id: Int)Parameters
idnumber after cv of the article.
-
Statistics about the article
See moreDeclaration
Swift
public struct Stat : Codable -
Information about the article.
See moreDeclaration
Swift
public struct Info : Codable
-
Fetchs and passes an article’s info to
handler.Declaration
Swift
public func getInfo(withSession session: BKSession = .shared, then handler: @escaping BKHandler<Info>)Parameters
sessionBKSession to generate request. Default to
BKSession.shared.handlercode to process an optional
Info, otherwise error description in Chinese.
View on GitHub
Install in Dash
BKArticle Structure Reference