diff --git a/ADNKit/ANKChannel.h b/ADNKit/ANKChannel.h index 9f69f3c..eb048a4 100644 --- a/ADNKit/ANKChannel.h +++ b/ADNKit/ANKChannel.h @@ -30,6 +30,7 @@ @property (assign) BOOL isEditableByCurrentUser; @property (assign) BOOL isInactive; @property (assign) BOOL hasUnreadMessages; +@property (assign) BOOL youMuted; - (BOOL)isPrivateMessageChannel; diff --git a/ADNKit/ANKChannel.m b/ADNKit/ANKChannel.m index 3dd3ae8..71571c3 100644 --- a/ADNKit/ANKChannel.m +++ b/ADNKit/ANKChannel.m @@ -24,7 +24,8 @@ + (NSDictionary *)JSONToLocalKeyMapping { @"has_unread": @"hasUnreadMessages", @"recent_message_id": @"latestMessageID", @"recent_message": @"latestMessage", - @"is_inactive" : @"isInactive"}]; + @"is_inactive" : @"isInactive", + @"you_muted" : @"youMuted"}]; } diff --git a/ADNKit/ANKClient.m b/ADNKit/ANKClient.m index 0c8e4e3..aed6c38 100644 --- a/ADNKit/ANKClient.m +++ b/ADNKit/ANKClient.m @@ -458,7 +458,7 @@ - (id)parsedObjectFromJSON:(NSDictionary *)JSON { BOOL isMessage = sampleObject[@"channel_id"] && !sampleObject[@"canonical_url"] && !sampleObject[@"num_stars"]; BOOL isPost = sampleObject[@"num_stars"] && sampleObject[@"user"] && sampleObject[@"canonical_url"] && sampleObject[@"text"]; BOOL isChannel = sampleObject[@"has_unread"] && sampleObject[@"readers"]; - BOOL isFile = sampleObject[@"complete"] && sampleObject[@"derived_files"]; + BOOL isFile = sampleObject[@"complete"] && sampleObject[@"file_token"]; ANKAPIResponse *response = [[ANKAPIResponse alloc] initWithResponseObject:JSON]; Class resourceClass = nil;