Created initial Realm models and started creating a test to check the relationships between them

This commit is contained in:
Guilherme Rambo
2017-02-06 14:19:07 -02:00
parent 372c374253
commit 91d88aba6e
18 changed files with 831 additions and 40 deletions

View File

@@ -0,0 +1,24 @@
//
// TranscriptAnnotation.swift
// WWDC
//
// Created by Guilherme Rambo on 06/02/17.
// Copyright © 2017 Guilherme Rambo. All rights reserved.
//
import Cocoa
import RealmSwift
/// TranscriptAnnotation is a line within an ASCIIWWDC transcript, with its associated timestamp within the session's video
class TranscriptAnnotation: Object {
/// The time this annotation occurs within the video
dynamic var timecode = 0.0
/// The annotation's text
dynamic var body = ""
/// The transcript this annotation is associated with
let transcript = LinkingObjects(fromType: Transcript.self, property: "annotations")
}