mirror of
https://github.com/tappollo/WWDC.git
synced 2026-06-11 23:45:27 +08:00
32 lines
747 B
Swift
32 lines
747 B
Swift
//
|
|
// Transcript.swift
|
|
// WWDC
|
|
//
|
|
// Created by Guilherme Rambo on 06/02/17.
|
|
// Copyright © 2017 Guilherme Rambo. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
import RealmSwift
|
|
|
|
/// Transcript is an ASCIIWWDC transcript for a WWDC session
|
|
public class Transcript: Object {
|
|
|
|
/// Unique identifier
|
|
public dynamic var identifier = ""
|
|
|
|
/// Full text
|
|
public dynamic var fullText = ""
|
|
|
|
/// The annotations the transcript contains
|
|
public let annotations = List<TranscriptAnnotation>()
|
|
|
|
/// The session this transcript is for
|
|
public let session = LinkingObjects(fromType: Session.self, property: "transcript")
|
|
|
|
public override class func primaryKey() -> String? {
|
|
return "identifier"
|
|
}
|
|
|
|
}
|