The following classes are available globally.
This is a special class for representing the payload as an atomic object. It encapsulates the type and the payload, as a Data object.
Expressing it as a class gives us a couple of things: 1) It allows us to keep it as a reference, as opposed to a copy, and 2) It allows us to easily extend the class with data interpretation.See more
public class RVP_Cocoa_SDK_Payload
This is the fundamental base class for the various data item classes. It aggregates a bunch of generic functionality that can be applied across the board.See more
public class A_RVP_Cocoa_SDK_Object : NSObject, Sequence
This class represents the public interface to the White Dragon Great Rift Valley Platform BAOBAB Server iOS SDK framework.
The SDK is a Swift-only shared framework for use by Swift applications, targeting iOS 11 or above.
This system works by caching retrieved objects in the main SDK instance, and referencing them. This is different from the PHP SDK, where each object is an independent instance and state. Swift likes objects to be referenced, as opposed to copied, so we honor that. Since the SDK is really an ORM, this makes sense.
This class follows the Sequence protocol, so its cached instances can be iterated and subscripted. These instances are kept sorted by ID and database.
The SDK opens a session to the server upon instantiation, and maintains that throughout its lifecycle. This happens whether or not a login is done.
It can also have an open session passed in at instantiation, and it will use that session.See more
public class RVP_Cocoa_SDK : NSObject, Sequence, URLSessionDelegate