         var sample: NSData?
         var user: NSData?
         var vote: NSNumber?
+		var flag: NSNumber?
         
         @objc static func dynamoDBTableName() -> String {
             return "Votes"

		}
	}
    
	var vote = Vote.Meh {
		didSet {
			NSNotificationCenter.defaultCenter().postNotificationName(Sample.VoteUpdateNotification, object: self)
		}
	}

    init(user: NSUUID, event: Venue, time: NSDate, comment: String?, stamp: UsageStamp, rating: [Int], prefix: String = PartyUpConstants.DefaultStoragePrefix) {
		self.user = user

        self.prefix = prefix
        
		AWSDynamoDBObjectMapper.defaultDynamoDBObjectMapper().load(VoteDB.self, hashKey: VoteDB.hashKeyGenerator(event.unique, sample: identifier), rangeKey: VoteDB.rangeKeyGenerator(UIDevice.currentDevice().identifierForVendor!)).continueWithSuccessBlock { task in
				if let result = task.result as? VoteDB {
					dispatch_async(dispatch_get_main_queue()) {
						self.vote = Vote(rawValue: result.vote?.integerValue ?? 0)!
						self.flag = result.flag?.boolValue ?? false
						NSNotificationCenter.defaultCenter().postNotificationName(Sample.VoteUpdateNotification, object: self)
					}
				}

            return nil
        }
