Page Summary
-
IsPlaceOpenResponseis a struct that represents the response from theisPlaceOpenmethod. -
It includes a
statusproperty indicating whether the place is open, which is optional and may benil. -
There's an initializer specifically for unit testing that allows setting the
statusdirectly.
IsPlaceOpenResponse
struct IsPlaceOpenResponseextension IsPlaceOpenResponse : Sendable, SendableMetatypeThe response from the isPlaceOpen method.
-
Initializes the response with a given status.
This is meant to be used for unit testing purposes.
Declaration
Swift
init(status: Bool?)Parameters
statusThe open status of the place.
-
The open status of the place.
Declaration
Swift
var status: Bool? { get }