S2BPostableDanmaku

public class S2BPostableDanmaku: S2BDanmaku, CustomStringConvertible

Local danmaku ready for posting

  • When the danmaku was/is/will be posted

    Declaration

    Swift

    public let date: Date
  • Undocumented

    Declaration

    Swift

    public init(_ danmaku: String, playTime: TimeInterval, config: Config = .default, date: Date = Date())
  • Undocumented

    Declaration

    Swift

    public convenience init(_ danmaku: String, playTime: TimeInterval, rgb color: Int? = nil, fontSize: Config.FontSize? = nil, mode: Config.Mode? = nil, pool: Config.Pool? = nil, date: Date = Date())
  • Undocumented

    Declaration

    Swift

    public convenience init(_ raw: S2BDanmaku, date: Date = Date())
  • Prepare a local danmaku for posting by assign its date of emission.

    Declaration

    Swift

    public static func byEncoding(_ raw: S2BDanmaku, cid: Int, forSession session: BKSession)
        -> (postable: S2BPostableDanmaku, data: Data?)

    Parameters

    raw

    local danmaku.

    session

    session providing csrf value.

    Return Value

    A danmaku ready for http post request, and encoded data as request body.

  • String representation of post request body

    Declaration

    Swift

    public var description: String