     case Other        = "other"
 }
 
-public struct Playlist {
+public struct Playlist: Hashable, Equatable {
     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 init(json: JSON) {
        id                  = json["id"].intValue

        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
}
