32 lines
511 B
Swift
32 lines
511 B
Swift
//
|
|
// Message.swift
|
|
// DAO
|
|
//
|
|
// Created by Igor Bulyga on 05.02.16.
|
|
// Copyright © 2016 RedMadRobot LLC. All rights reserved.
|
|
//
|
|
|
|
import DAO
|
|
|
|
|
|
class Message: Entity {
|
|
|
|
var text: String?
|
|
|
|
init(entityId: String, text: String?)
|
|
{
|
|
self.text = text
|
|
super.init(entityId: entityId)
|
|
}
|
|
|
|
required init()
|
|
{
|
|
super.init()
|
|
}
|
|
|
|
override func equals<T>(_ other: T) -> Bool where T: Message
|
|
{
|
|
return super.equals(other) && self.text == other.text
|
|
}
|
|
}
|