//
//  documentFolder.m
//  AS350B3e
//
//  Created by KulanaMac on 2/21/15.
//
//

#import "documentFolder.h"

@implementation documentFolder

@synthesize folder;
@synthesize folderName;
@synthesize ACtype;
@synthesize password;
@synthesize files;

-(id) initWithFolder:(NSString*)theFolder AndFolderName:(NSString*)theFolderName AndACtype:(NSString*)TheACtype AndPassword:(NSString*)ThePassword AndFiles:(NSMutableArray*)TheFiles;
{
    folder=theFolder;
    folderName=theFolderName;
    ACtype=TheACtype;
    password=ThePassword;
    files=TheFiles;
    return self;
}

- (id) initWithCoder: (NSCoder *)coder
{
    if (self = [super init])
    {
        self.folder = [coder decodeObjectForKey:@"folder"];
        self.folderName = [coder decodeObjectForKey:@"folderName"];
        self.ACtype = [coder decodeObjectForKey:@"ACtype"];
        self.password = [coder decodeObjectForKey:@"password"];
        self.files = [coder decodeObjectForKey:@"files"];
    }
    return self;
}

- (void) encodeWithCoder: (NSCoder *)coder
{
    [coder encodeObject:folder forKey:@"folder"];
    [coder encodeObject:folderName forKey:@"folderName"];
    [coder encodeObject:ACtype forKey:@"ACtype"];
    [coder encodeObject:password forKey:@"password"];
    [coder encodeObject:files forKey:@"files"];
}


@end
