-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSWCurrentUser.h
More file actions
41 lines (35 loc) · 1.06 KB
/
Copy pathSWCurrentUser.h
File metadata and controls
41 lines (35 loc) · 1.06 KB
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
//
// SWCurrentUser.h
// StarWorld
//
// Created by Aaron Baker on 9/12/11.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface SWCurrentUser : NSObject <TTURLRequestDelegate> {
NSString *cookie;
NSString *username;
NSString *password;
NSMutableURLRequest *request;
BOOL authenticated;
float x;
float y;
NSMutableArray *starredPostIDs;
TTURLRequest* getStarRequest;
TTURLRequest* addStarRequest;
TTURLRequest* removeStarRequest;
}
@property (nonatomic, copy) NSString *cookie;
@property (nonatomic, retain) NSMutableArray *starredPostIDs;
@property (nonatomic, copy) NSString *username;
@property (nonatomic, copy) NSString *password;
@property (nonatomic, retain) NSMutableURLRequest *request;
@property (nonatomic, assign) BOOL authenticated;
@property (assign) float x;
@property (assign) float y;
+ (SWCurrentUser*)currentUserInstance;
- (void) login;
- (void) logout;
- (void) setStarForPostID: (NSNumber*) postID;
- (void) removeStarForPostID: (NSNumber*) postID;
@end