-
Notifications
You must be signed in to change notification settings - Fork 6
/
CLAccount.h
executable file
·45 lines (35 loc) · 1.08 KB
/
CLAccount.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
//
// CLAccount.h
// Cloud
//
// Created by Nick Paulson on 7/20/10.
// Copyright 2010 Linebreak. All rights reserved.
//
#import <Foundation/Foundation.h>
enum {
CLAccountTypeFree,
CLAccountTypePro
};
typedef NSInteger CLAccountType;
@class CLSocket;
@interface CLAccount : NSObject<NSCopying, NSCoding> {
NSURL *_domain;
NSURL *_domainHomePage;
BOOL _alphaUser;
BOOL _uploadsArePrivate;
NSString *_email;
NSDate *_subscriptionExpiresAt;
CLAccountType _type;
CLSocket *_socket;
}
@property (nonatomic, readwrite, retain) NSURL *domain;
@property (nonatomic, readwrite, retain) NSURL *domainHomePage;
@property (nonatomic, readwrite, assign, getter = isAlphaUser) BOOL alphaUser;
@property (nonatomic, readwrite, assign) BOOL uploadsArePrivate;
@property (nonatomic, readwrite, copy) NSString *email;
@property (nonatomic, readwrite, retain) NSDate *subscriptionExpiresAt;
@property (nonatomic, readwrite, assign) CLAccountType type;
@property (nonatomic, readwrite, retain) CLSocket *socket;
- (id)initWithEmail:(NSString *)anEmail;
+ (id)accountWithEmail:(NSString *)anEmail;
@end