{"primaryContentSections":[{"kind":"declarations","declarations":[{"tokens":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Client"}],"languages":["swift"],"platforms":["macOS"]}]}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"variants":[{"paths":["\/documentation\/swiftlibscommunication\/client"],"traits":[{"interfaceLanguage":"swift"}]}],"identifier":{"url":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/Client","interfaceLanguage":"swift"},"abstract":[{"type":"text","text":"This protocol defines a client that will be making the remote calls."}],"kind":"symbol","metadata":{"fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Client"}],"title":"Client","roleHeading":"Protocol","role":"symbol","symbolKind":"protocol","externalID":"s:22SwiftLibsCommunication6ClientP","modules":[{"name":"SwiftLibsCommunication"}],"navigatorTitle":[{"kind":"identifier","text":"Client"}]},"hierarchy":{"paths":[["doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication"]]},"topicSections":[{"title":"Instance Methods","identifiers":["doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/Client\/request(endpoint:as:)"]}],"references":{"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/Client":{"role":"symbol","title":"Client","fragments":[{"kind":"keyword","text":"protocol"},{"kind":"text","text":" "},{"kind":"identifier","text":"Client"}],"abstract":[{"type":"text","text":"This protocol defines a client that will be making the remote calls."}],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/Client","kind":"symbol","type":"topic","navigatorTitle":[{"kind":"identifier","text":"Client"}],"url":"\/documentation\/swiftlibscommunication\/client"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication/Client/request(endpoint:as:)":{"role":"symbol","title":"request(endpoint:as:)","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"request"},{"kind":"text","text":"<"},{"kind":"genericParameter","text":"Model"},{"kind":"text","text":">("},{"kind":"externalParam","text":"endpoint"},{"kind":"text","text":": some "},{"kind":"typeIdentifier","text":"Endpoint","preciseIdentifier":"s:22SwiftLibsCommunication8EndpointP"},{"kind":"text","text":", "},{"kind":"externalParam","text":"as"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Model"},{"kind":"text","text":".Type) "},{"kind":"keyword","text":"async"},{"kind":"text","text":" "},{"kind":"keyword","text":"throws"},{"kind":"text","text":" -> "},{"kind":"typeIdentifier","text":"Model"}],"abstract":[{"type":"text","text":"Makes a request to a remote location based on a given endpoint and expects to return a response casted as a given model type."}],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication\/Client\/request(endpoint:as:)","kind":"symbol","required":true,"type":"topic","url":"\/documentation\/swiftlibscommunication\/client\/request(endpoint:as:)"},"doc://SwiftLibsCommunication/documentation/SwiftLibsCommunication":{"role":"collection","title":"SwiftLibsCommunication","abstract":[],"identifier":"doc:\/\/SwiftLibsCommunication\/documentation\/SwiftLibsCommunication","kind":"symbol","type":"topic","url":"\/documentation\/swiftlibscommunication"}}}