         tracks              = json["tracks"].arrayValue.map({ Track(json: $0) })
         trackCount          = json["track_count"].intValue
     }
-}+}
+
+public func ==(lhs: Playlist, rhs: Playlist) -> Bool {
+    return lhs.id == rhs.id
+}

    case Other        = "other"
}

public struct Playlist {
    public let id:           Int
    public let createdAt:    String
    public let userId:       Int

    public let playlistType: PlaylistType?
    public let tracks:       [Track]
    public let trackCount:   Int

    public var hashValue: Int {
        return id.hashValue
    }

    public init(json: JSON) {
        id                  = json["id"].intValue
