MLSubclassing Protocol Reference
Classes conforming to this protocol should subclass MLObject and include MLObject+Subclass.h in their implementation file. This ensures the methods in the Subclass category of MLObject are exposed in its subclasses only.
Constructs an object of the most specific class known to implement +leapClassName. This method takes care to help MLObject subclasses be subclassed themselves. For example, [MLUser object] returns a MLUser by default but will return an object of a registered subclass instead if one is known. A default implementation is provided by MLObject which should always be sufficient.
Returns the object that is instantiated.
Creates a reference to an existing MLObject for use in creating associations between MLObjects. Calling isDataAvailable on this object will return NO until fetchIfNeeded or refresh has been called. No network request will be made. A default implementation is provided by MLObject which should always be sufficient.
+ (instancetype)objectWithoutDataWithObjectId:(nullable NSString *)objectId
A MLObject without data.
The name of the class as seen in the REST API.
+ (NSString *)leapClassName
Create a query which returns objects of this type.
A default implementation is provided by MLObject which should always be sufficient.
+ (MLQuery *)query