-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGMOperationResult.m
More file actions
executable file
·34 lines (30 loc) · 972 Bytes
/
GMOperationResult.m
File metadata and controls
executable file
·34 lines (30 loc) · 972 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// GMNetwork Kit
//
// Created by Gersham Meharg on 11-02-13.
// Copyright 2011 Gersham Meharg. All rights reserved.
//
#import "GMOperationResult.h"
@implementation GMOperationResult
@synthesize httpCode = _httpCode;
@synthesize json = _json;
@synthesize data = _data;
@synthesize image = _image;
@synthesize error = _error;
@synthesize type = _type;
@synthesize parameters = _parameters;
@synthesize url = _url;
@synthesize errorTitle = _errorTitle;
@synthesize errorDescription = _errorDescription;
@synthesize allObjectIDs = _allObjectsIDs;
@synthesize createdObjectIDs = _createdObjectIDs;
@synthesize updatedObjectIDs = _updatedObjectIDs;
@synthesize completion = _completion;
- (NSString *)description {
if (self.error) {
return [NSString stringWithFormat:@"OperationResult code:%i error:%@", self.httpCode, self.error];
} else {
return [NSString stringWithFormat:@"OperationResult code:%i json-count:%i", self.httpCode, self.json.count];
}
}
@end