[Library] iTunes library #5

Merged
javier merged 25 commits from library/itunes into main 2024-03-17 22:48:28 +00:00
Showing only changes of commit ac1074324d - Show all commits

View File

@ -8,7 +8,7 @@
import Foundation
public struct Review: Equatable {
public struct Review {
// MARK: Constants
public let author: String
@ -39,3 +39,22 @@ public struct Review: Equatable {
}
}
// MARK: - Equatable
extension Review: Equatable {
// MARK: Functions
public static func == (
lhs: Review,
rhs: Review
) -> Bool {
lhs.author == rhs.author
&& lhs.content == rhs.content
&& lhs.id == rhs.id
&& lhs.rating == rhs.rating
&& lhs.title == rhs.title
&& lhs.version == rhs.version
&& lhs.updated.description == rhs.updated.description
}
}