mirror of
https://github.com/tappollo/WWDC.git
synced 2026-04-28 20:05:13 +08:00
26 lines
546 B
Swift
26 lines
546 B
Swift
//
|
|
// Keyword.swift
|
|
// WWDC
|
|
//
|
|
// Created by Guilherme Rambo on 06/02/17.
|
|
// Copyright © 2017 Guilherme Rambo. All rights reserved.
|
|
//
|
|
|
|
import Cocoa
|
|
import RealmSwift
|
|
|
|
/// Keywords used when searching sessions
|
|
public class Keyword: Object {
|
|
|
|
/// The keyword
|
|
public dynamic var name = ""
|
|
|
|
/// Sessions containing this keyword
|
|
public let sessionInstances = LinkingObjects(fromType: SessionInstance.self, property: "keywords")
|
|
|
|
public override class func primaryKey() -> String? {
|
|
return "name"
|
|
}
|
|
|
|
}
|