Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
//
// Invitation.swift
// KinveyRelationships
//
// Created by Edward LoPinto on 3/2/16.
// Copyright © 2016 Edward LoPinto. All rights reserved.
//
import Foundation
class Invitation: NSObject {
var objectId: String?
var status: NSNumber? //Error in example: NSInteger should be NSNumber
var invitee: KCSUser?
var event: Event?
override func hostToKinveyPropertyMapping() -> [NSObject : AnyObject]! {
return [
"objectId" : KCSEntityKeyId,
"status" : "status",
"invitee" : "invitee",
"event" : "event"
]
}
static override func kinveyPropertyToCollectionMapping() -> [NSObject : AnyObject]! {
return [
"invitee" : KCSUserCollectionName,
"event" : "Events"
]
}
override func referenceKinveyPropertiesOfObjectsToSave() -> [AnyObject]! {
return ["event"]
}
}