Conformed the Review model and the EndpointError error in the Feed library to the Equatable protocol.
This commit is contained in:
parent
00b092f2b1
commit
0e84dcde30
@ -6,7 +6,7 @@
|
|||||||
// Copyright © 2024 Röck+Cöde VoF. All rights reserved.
|
// Copyright © 2024 Röck+Cöde VoF. All rights reserved.
|
||||||
//
|
//
|
||||||
|
|
||||||
public enum EndpointError: Error {
|
public enum EndpointError: Error, Equatable {
|
||||||
case inputParametersEmpty
|
case inputParametersEmpty
|
||||||
case requestFailed(statusCode: Int)
|
case requestFailed(statusCode: Int)
|
||||||
case responseNotFound
|
case responseNotFound
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
import Foundation
|
import Foundation
|
||||||
|
|
||||||
public struct Review {
|
public struct Review: Equatable {
|
||||||
|
|
||||||
// MARK: Constants
|
// MARK: Constants
|
||||||
public let author: String
|
public let author: String
|
||||||
|
Loading…
x
Reference in New Issue
Block a user