-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFBStatusUpdateRequest.h
53 lines (39 loc) · 1.56 KB
/
FBStatusUpdateRequest.h
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// FBStatusUpdateRequest.h
// Thumbprint
//
// Created by Blake Watters on 5/13/09.
// Copyright 2009 Two Toasters. All rights reserved.
//
#import "FBConnect/FBConnect.h"
#import "FBPermissionRequest.h"
@protocol FBStatusUpdateRequestDelegate;
@interface FBStatusUpdateRequest : NSObject <FBRequestDelegate, FBPermissionRequestDelegate> {
FBSession* _session;
FBPermissionRequest* _permissionRequest;
NSString* _statusText;
id<FBStatusUpdateRequestDelegate> _delegate;
}
@property (nonatomic, retain) FBSession* session;
@property (nonatomic, readonly) NSString* statusText;
@property (nonatomic, assign) id<FBStatusUpdateRequestDelegate> delegate;
+ (FBStatusUpdateRequest*)requestStatusUpdate:(NSString*)statusString withSession:(FBSession*)session delegate:(id<FBStatusUpdateRequestDelegate>)delegate;
+ (FBStatusUpdateRequest*)requestStatusUpdate:(NSString*)statusString delegate:(id<FBStatusUpdateRequestDelegate>)delegate;
- (id)initWithSession:(FBSession*)session;
- (void)updateStatus:(NSString*)status;
@end
@protocol FBStatusUpdateRequestDelegate <NSObject>
@optional
/**
* Called when the status update request succeeded.
*/
- (void)statusUpdateRequestWasSuccessful:(FBStatusUpdateRequest*)statusUpdateRequest;
/**
* Called when the status update request was not successful.
*/
- (void)statusUpdateRequestFailed:(FBStatusUpdateRequest*)statusUpdateRequest;
/**
* Called when an error prevents the request from completing successfully.
*/
- (void)statusUpdateRequest:(FBStatusUpdateRequest*)statusUpdateRequest didFailWithError:(NSError*)error;
@end