Navigation Menu

Skip to content

Commit

Permalink
Added function to get node index
Browse files Browse the repository at this point in the history
  • Loading branch information
markdorison committed Apr 27, 2011
1 parent ab417c9 commit ce93673
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions DIOSNode.h
Expand Up @@ -44,4 +44,5 @@
-(NSDictionary *) nodeGet:(NSString *)anNid;
-(NSDictionary *) nodeSave:(NSMutableDictionary *)node;
-(NSDictionary *) nodeDelete:(NSString *)nid;
-(NSDictionary *) nodeGetIndex;
@end
7 changes: 7 additions & 0 deletions DIOSNode.m
Expand Up @@ -73,6 +73,13 @@ -(NSDictionary *) nodeSave:(NSMutableDictionary *)node {
[self runMethod];
return [self connResult];
}
-(NSDictionary *) nodeGetIndex {
[self setMethod:@"node.get"];
[self setRequestMethod:@"GET"];
[self setMethodUrl:[NSString stringWithFormat:@"node"]];
[self runMethod];
return [self connResult];
}
- (void) dealloc {
[super dealloc];

Expand Down

0 comments on commit ce93673

Please sign in to comment.