BKArticle

public struct BKArticle : Equatable

Bilibili article, identified by unique cv id.

  • 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

    id

    number after cv of the article.

  • Statistics about the article

    See more

    Declaration

    Swift

    public struct Stat : Codable
  • Information about the article.

    See more

    Declaration

    Swift

    public struct Info : Codable

Networking

  • Fetchs and passes an article’s info to handler.

    Declaration

    Swift

    public func getInfo(withSession session: BKSession = .shared,
                        then handler: @escaping BKHandler<Info>)

    Parameters

    session

    BKSession to generate request. Default to BKSession.shared.

    handler

    code to process an optional Info, otherwise error description in Chinese.