mirror of
https://github.com/tappollo/WWDC.git
synced 2026-04-29 04:15:12 +08:00
Created initial Realm models and started creating a test to check the relationships between them
This commit is contained in:
24
ConfCore/TranscriptAnnotation.swift
Normal file
24
ConfCore/TranscriptAnnotation.swift
Normal 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")
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user