-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUserDataEvent.h
More file actions
83 lines (46 loc) · 1.66 KB
/
UserDataEvent.h
File metadata and controls
83 lines (46 loc) · 1.66 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
//
// UserDataEvent.h
// iVerb
//
// Created by Max on 20/04/2017.
//
//
@import Foundation;
#import "Verb.h"
#import "Playlist.h"
NS_ASSUME_NONNULL_BEGIN
@interface UserDataEvent : NSObject <NSSecureCoding>
@property (nonatomic, strong, readonly) NSDate * timestamp;
@end
@interface /* abstract */ UDPlaylistEvent : UserDataEvent
/// The unique object ID of the playlist.
@property (nonatomic, strong, readonly) NSManagedObjectID * playlistID;
/// A reference to the playlist in the current managed context; nil if no playlist with matching ID found.
@property (nonatomic, strong, readonly, nullable) Playlist * playlist;
@property (nonatomic, strong, nullable) NSString * playlistName DEPRECATED_MSG_ATTRIBUTE("Migration from 2.6 only. Use 'playlist.name' or 'playlistID' instead.");
- (instancetype)initWithPlaylist:(Playlist *)playlist;
@end
@interface UDPlaylistCreateEvent : UDPlaylistEvent
@property (nonatomic, strong) NSString * name;
@end
@interface UDPlaylistRenameEvent : UDPlaylistEvent
@property (nonatomic, strong) NSString * oldName;
@property (nonatomic, strong) NSString * name;
@end
@interface UDPlaylistDeleteEvent : UDPlaylistEvent
@end
@interface UDPlaylistAddVerbEvent : UDPlaylistEvent
@property (nonatomic, strong) NSString * infinitif;
@end
@interface UDPlaylistRemoveVerbEvent : UDPlaylistEvent
@property (nonatomic, strong) NSString * infinitif;
@end
@interface /* abstract */ UDVerbEvent : UserDataEvent
@property (nonatomic, strong) NSString * infinitif;
@end
@interface UDVerbAddNoteEvent : UDVerbEvent
@property (nonatomic, strong) NSString * note;
@end
@interface UDVerbRemoveNoteEvent : UDVerbEvent
@end
NS_ASSUME_NONNULL_END