29 lines
546 B
Swift
29 lines
546 B
Swift
import Foundation
|
|
|
|
public struct RDEPUBReaderTableOfContentsItem: Equatable {
|
|
|
|
public var title: String
|
|
|
|
public var href: String
|
|
|
|
public var depth: Int
|
|
|
|
public var pageNumber: Int?
|
|
|
|
public var isReadable: Bool
|
|
|
|
public init(
|
|
title: String,
|
|
href: String,
|
|
depth: Int,
|
|
pageNumber: Int? = nil,
|
|
isReadable: Bool = true
|
|
) {
|
|
self.title = title
|
|
self.href = href
|
|
self.depth = depth
|
|
self.pageNumber = pageNumber
|
|
self.isReadable = isReadable
|
|
}
|
|
}
|