                                  title: title,
                                 tracks: [track])
     }
-}+}
+
+public func ==(lhs: YouTubePlaylistItem, rhs: YouTubePlaylistItem) -> Bool {
+    return lhs.id == rhs.id
+}

    return lhs.id == rhs.id
}

public class YouTubePlaylistItem: YouTubeResource {
    public class var url: String { return "https://www.googleapis.com/youtube/v3/playlistItems" }
    public class var params: [String:String] { return [:] }
    public let etag:        String

    public let privacyStatus: String?

    public var track:         Track

    public var hashValue: Int { return id.hashValue }

    public required init(json: JSON) {
        let snippet        = json["snippet"].dictionaryValue
