Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 43 lines (33 sloc) 1.522 kb
12dc852 @edanuff added project files
edanuff authored
1 #import <Foundation/Foundation.h>
2
3
4 // response states
5 enum
6 {
7 kUGClientResponseSuccess = 0,
8 kUGClientResponseFailure = 1,
9 kUGClientResponsePending = 2
10 };
11
12
13 @interface UGClientResponse : NSObject
14
15 // this will be a unique ID for this transaction. If you have
16 // multiple transactions in progress, you can keep track of them
17 // with this value. Note: The transaction ID of a synchronous
18 // call response is always -1.
19 @property int transactionID;
20
21 // this will be one of three possible valuse:
22 // kUGClientResponseSuccess: The operation is complete and was successful. response will
23 // be valid, as will rawResponse
24 //
25 // kUGClientResponseFailure: There was an error with the operation. No further
26 // processing will be done. response will be an NSString with
27 // a plain-text description of what went wrong. rawResponse
28 // will be valid if the error occurred after receiving data from
29 // the service. If it occurred before, rawResponse will be nil.
30 //
31 // kUGClientResponsePending: The call is being handled asynchronously and not yet complete.
32 // response will be nil. rawResponse will also be nil
33 @property int transactionState;
34
35 // This is the response. The type of this variable is dependant on the call that caused
36 // this response.
37 @property id response;
38
39 // This is the raw text that was returned by the server.
40 @property NSString *rawResponse;
41
42 @end
Something went wrong with that request. Please try again.