| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | 
              - import Foundation
 - import ObjectMapper
 - public enum MessageType: String {
 -     case system
 -     case thumbup
 -     case comment
 - }
 - public struct MessageItem: JSONCode {
 -     public var msg_unread_num = 0
 -     public var msg_type = MessageType.system
 -     var msg_type_desc = ""
 -     var msg_avatar = ""
 -     init(json: [String: AnyObject]) {
 -         self.init(map: Map(mappingType: .fromJSON, JSON: json))
 -     }
 - }
 - extension MessageItem: Mappable {
 -     public init(map: Map) {
 -         mapping(map: map)
 -     }
 -     public mutating func mapping(map: Map) {
 -         msg_unread_num  <- map["msg_unread_num"]
 -         msg_type_desc   <- map["msg_type_desc"]
 -         msg_type        <- (map["msg_type"], EnumTransform<MessageType>())
 -         msg_avatar      <- map["msg_avatar"]
 -     }
 - }
 - extension MessageItem: Equatable {
 -     public static func == (lhs: MessageItem, rhs: MessageItem) -> Bool {
 -         return lhs.msg_type == rhs.msg_type
 -             && lhs.msg_avatar == rhs.msg_avatar
 -             && lhs.msg_type_desc == rhs.msg_type_desc
 -             && lhs.msg_unread_num == rhs.msg_unread_num
 -     }
 - }
 
 
  |