-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBNStatus.h
38 lines (32 loc) · 1.02 KB
/
BNStatus.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
//
// BNStatus.h
// Basecamp Notifications
//
// Created by Nick Paulson on 2/12/10.
// Copyright 2010 Linebreak. All rights reserved.
//
#import <Cocoa/Cocoa.h>
typedef enum _BNStatusType {
BNStatusTypeComment = 0,
BNStatusTypeFileUpload = 1,
BNStatusTypeTodo = 2,
BNStatusTypeMessage = 3,
BNStatusTypeUnknown = 4
} BNStatusType;
@interface BNStatus : NSObject<NSCoding> {
NSString *creator;
NSString *title;
NSDate *date;
NSURL *URL;
BNStatusType type;
BOOL read;
}
@property (retain, readonly) NSString *creator;
@property (retain, readonly) NSString *title;
@property (retain, readonly) NSDate *date;
@property (retain, readonly) NSURL *URL;
@property (readonly) BNStatusType type;
@property (readwrite, getter=isRead) BOOL read;
- (id)initWithTitle:(NSString *)aTitle creator:(NSString *)aCreator URL:(NSURL *)aURL date:(NSDate *)aDate type:(BNStatusType)theType;
+ (BNStatus *)statusWithTitle:(NSString *)aTitle creator:(NSString *)aCreator URL:(NSURL *)aURL date:(NSDate *)aDate type:(BNStatusType)theType;
@end