Created
September 1, 2015 20:31
-
-
Save jleach/03053aa74f519c936bd1 to your computer and use it in GitHub Desktop.
Proposed ObjectiveDDP Data Management Protocol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Created by Jason Leach on 2015-08-27. | |
// | |
@import Foundation; | |
@class MeteorClient; | |
@protocol MeteorClientDataProtocol <NSObject> | |
@required | |
// add | |
- (void)meteorClient:(MeteorClient *)client didAddObjectWithId:(NSString *)objectId collectionName:(NSString *)name fields:(NSDictionary *)fields; | |
- (void)meteorClient:(MeteorClient *)client didAddObjectWithId:(NSString *)objectId beforeObjectWithId:(NSString *)objectId collectionName:(NSString *)name fields:(NSDictionary *)fields; | |
// remove | |
- (void)meteorClient:(MeteorClient *)client didRemoveObjectWithId:(NSString *)objectId collectionName:(NSString *)name; | |
// change | |
- (void)meteorClient:(MeteorClient *)client didChangeObjectWithId:(NSString *)objectId collectionName:(NSString *)name fields:(NSDictionary *)fields; | |
@optional | |
// move | |
- (void)meteorClient:(MeteorClient *)client didMoveObjectWithId:(NSString *)objectId beforeObjectWithId:(NSString *)objectId collectionName:(NSString *)name; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yeah looks good.