OMCMobileObjectCollection Class Reference

Inherits from OMCMobileResource : NSObject
Declared in OMCMobileObjectCollection.h

Overview

Class that represent the collection of MobileObjects derived from MobileResource

– getMobileObjects

  • Returns all the mobileObjects of this collection.
- (NSArray *)getMobileObjects

Return Value

mobileObjects array of OMCMobileObject object

Declared In

OMCMobileObjectCollection.h

– deleteResourceOnError:

  • Deletes the file. Caches the delete locally if offline.
- (void)deleteResourceOnError:(OMCSyncErrorBlock)errorBlk

Parameters

errorBlk

block that will be called after the request has finished with an error.

Declared In

OMCMobileObjectCollection.h

– deleteResource:OnError:

  • Deletes the file.
- (void)deleteResource:(BOOL)deleteIfOffline OnError:(OMCSyncErrorBlock)errorBlk

Parameters

deleteIfOffline

If true will cache the delete locally and sync back to the service if the device is offline. If false will fail if the device is offline.

errorBlk

block that will be called after the request has finished with an error.

Declared In

OMCMobileObjectCollection.h