2 // FRTocReference.swift
5 // Created by Heberti Almeida on 06/05/15.
6 // Copyright (c) 2015 Folio Reader. All rights reserved.
11 open class FRTocReference: NSObject {
12 var children: [FRTocReference]!
14 public var title: String!
15 public var resource: FRResource?
16 public var fragmentID: String?
18 convenience init(title: String, resource: FRResource?, fragmentID: String = "") {
19 self.init(title: title, resource: resource, fragmentID: fragmentID, children: [FRTocReference]())
22 init(title: String, resource: FRResource?, fragmentID: String, children: [FRTocReference]) {
23 self.resource = resource
25 self.fragmentID = fragmentID
26 self.children = children
32 func ==(lhs: FRTocReference, rhs: FRTocReference) -> Bool {
33 return lhs.title == rhs.title && lhs.fragmentID == rhs.fragmentID