mergeEntriesFromFeed:forUrlKey:withError:withCompletionBlock: method

Merges the entries from the passed feed with the current set of entries (server version only) in the cache.

Syntax

- ( BOOL ) mergeEntriesFromFeed : ( ODataFeed * ) feed forUrlKey : ( NSString * ) urlKey withError : ( NSError ** ) error withCompletionBlock : ( NSNotification *notification ) block

Parameters

Returns

Boolean to indicate the outcome of the operation.
 id<Caching> cacheLocal = [[Cache alloc] init];
 NSError* error = nil;
 ODataDataParser* parser = [[ODataDataParser alloc] initWithEntitySchema:entitySchema andServiceDocument:serviceDoc];
 [parser parse:responseData];
 [cacheLocal mergeEntriesFromFeed:[parser getFeed] forUrlKey:urlKey withError:&error withCompletionBlock:^(NSNotification *notification) {
     NSLog("%", notification);
 }];
 if(error)
 {
     NSLog("Merge Error: %@", error);
     return;
 }