35 NSDictionary *dictionary;
39- (instancetype)init:(NSDictionary*)chapterDictionary {
42 dictionary = chapterDictionary;
49 return [
self getNumberProperty:ChapterKeyId];
52- (NSString*)getTimeBase {
53 return [
self getStringProperty:ChapterKeyTimeBase];
56- (NSNumber*)getStart {
57 return [
self getNumberProperty:ChapterKeyStart];
60- (NSString*)getStartTime {
61 return [
self getStringProperty:ChapterKeyStartTime];
65 return [
self getNumberProperty:ChapterKeyEnd];
68- (NSString*)getEndTime {
69 return [
self getStringProperty:ChapterKeyEndTime];
72- (NSDictionary*)getTags {
73 return [
self getProperty:ChapterKeyTags];
76- (NSString*)getStringProperty:(NSString*)key {
77 NSDictionary* allProperties = [
self getAllProperties];
78 if (allProperties == nil) {
82 return allProperties[key];
85- (NSNumber*)getNumberProperty:(NSString*)key {
86 NSDictionary* allProperties = [
self getAllProperties];
87 if (allProperties == nil) {
91 return allProperties[key];
94- (id)getProperty:(NSString*)key {
95 NSDictionary* allProperties = [
self getAllProperties];
96 if (allProperties == nil) {
100 return allProperties[key];
103- (NSDictionary*)getAllProperties {
NSString *const ChapterKeyTimeBase
NSString *const ChapterKeyStartTime
NSString *const ChapterKeyId
NSString *const ChapterKeyEndTime
NSString *const ChapterKeyEnd
NSString *const ChapterKeyTags
NSString *const ChapterKeyStart