     case Other       = "other"
 }
 
-public struct Track {
+public struct Track: Hashable, Equatable {
     public let id:                  Int
     public let createdAt:           String
     public let userId:              Int

    public let createdWith:         App

    public let attachmentsUri:      String?
    
    public init(json: JSON) {
        id                  = json["id"].intValue
        createdAt           = json["created_at"].stringValue

        attachmentsUri      = json["attachments_uri"].string
    }
}

public func ==(lhs: Track, rhs: Track) -> Bool {
    return lhs.id == rhs.id
}

