PracticeService
public protocol PracticeService
Base Protocol to get Virtual Practice Information
-
Fetches the
VirtualPractice
information for a specific idVirtualPractices
replaceRegions
going forward.Declaration
Swift
func getVirtualPractice(practiceId: String, success: @escaping (VirtualPractice) -> Void, failure: @escaping (FailedReason) -> Void)
Parameters
practiceId
the id of the
VirtualPractice
to fetch information aboutsuccess
A closure called with the
VirtualPractice
informationfailure
A closure called if any FailedReason errors are returned
-
getVirtualPractice(practiceId:
Asynchronous) Fetches the
VirtualPractice
information for a specific idVirtualPractices
replaceRegions
going forward.Throws
FailedReason
Declaration
Swift
func getVirtualPractice(practiceId: String) async throws -> VirtualPractice
Parameters
practiceId
the id of the
VirtualPractice
to fetch information aboutReturn Value
VirtualPractice
information