Reference
BeyableClientiOS.swift
Class that contains the communication logic between the SDK and the client app, it is the only entry point for the client application. It exposes the various functions to be called by the client application.
The class is instantiated at client application startup with the API key provided by BEYABLE and the method
BeyableClientiOS(String apiKey)
Repository/SendViewService.swift
This class is called by BeyableClientiOS and acts as an intermediary between BeyableClientiOS and BeyableService.
- It builds the various objects for the body of the different requests to be sent to the BEYABLE API,
- It also processes the responses from this api to factor and expose the correct objects used for the views
- It handles the saving of data in the cache and its use from the cache.
Services/BeyableService.swift
This class handles calls to the BEYABLE Api, and is only called by SendViewService