Classes
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 moreDeclaration
Swift
public class RVP_Cocoa_SDK_Payload
-
This is a generic “data database” class, encapsulating the generic methods and data items that go with the data database.
See moreDeclaration
Swift
public class A_RVP_Cocoa_SDK_Data_Object : A_RVP_Cocoa_SDK_Object
-
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 moreDeclaration
Swift
public class A_RVP_Cocoa_SDK_Object : NSObject, Sequence
-
Declaration
Swift
public class A_RVP_Cocoa_SDK_Security_Object : A_RVP_Cocoa_SDK_Object
-
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 moreDeclaration
Swift
public class RVP_Cocoa_SDK : NSObject
extension RVP_Cocoa_SDK: URLSessionDelegate
extension RVP_Cocoa_SDK: Sequence
-
Declaration
Swift
public class RVP_Cocoa_SDK_Login : A_RVP_Cocoa_SDK_Security_Object
-
Declaration
Swift
public class RVP_Cocoa_SDK_Place : A_RVP_Cocoa_SDK_Data_Object
-
Declaration
Swift
public class RVP_Cocoa_SDK_Thing : A_RVP_Cocoa_SDK_Data_Object
-
Declaration
Swift
public class RVP_Cocoa_SDK_User : A_RVP_Cocoa_SDK_Data_Object