//
//  ZLPhotoBrowerModel.m
//  EquipmentMS
//
//  Created by mac on 2018/8/21.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "ZLPhotoBrowerModel.h"

@implementation ZLPhotoBrowerModel

- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.imageData forKey:@"imageData"];
    [aCoder encodeObject:self.imageName forKey:@"imageName"];
    [aCoder encodeObject:self.localIdentifier forKey:@"localIdentifier"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    if (self = [super init]) {
        self.imageData = [aDecoder decodeObjectForKey:@"imageData"];
        self.imageName = [aDecoder decodeObjectForKey:@"imageName"];
        self.localIdentifier = [aDecoder decodeObjectForKey:@"localIdentifier"];

    }
    return self;
}
@end

@implementation VoiceDataModel
- (void)encodeWithCoder:(NSCoder *)aCoder{
    
    [aCoder encodeObject:self.voiceData forKey:@"voiceData"];
   
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder{
    
    if (self = [super init]) {
        self.voiceData = [aDecoder decodeObjectForKey:@"voiceData"];
    }
    return self;
}

@end
