//
//  ICRAnnouncement.m
//  Cruiser
//
//  Created by Lili Wang on 15/4/13.
//  Copyright (c) 2015年 Xummer. All rights reserved.
//

#import "ICRAnnouncement.h"
#import "ICRAttachment.h"

@implementation ICRAnnouncement

+ (NSDictionary *)specialKeysAndReplaceKeys {
    return @{ @"aID" : [[self class] PrimaryKey], };
}

+ (NSString *)PrimaryKey {
    return @"uuid";
}

//#pragma mark - Setter
- (void)setAttachments:(NSArray *)attachments {
//    if ([_attachments isEqualToArray:attachments]) {
//        return;
//    }
//    _attachments = attachments;
//    
//    for (NSDictionary *dict in attachments) {
//        ICRAttachment *attach = [ICRAttachment DBObject];
//        [attach praseFromJsonDict:dict];
//        
//        [self.arrSubModels addObject:attach];
//    }
}

@end
