-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhotoGroup.m
More file actions
46 lines (39 loc) · 1.07 KB
/
PhotoGroup.m
File metadata and controls
46 lines (39 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
//
// PhotoGroup.m
// Metasome
//
// Created by Omar Metwally on 9/12/13.
// Copyright (c) 2013 Logisome. All rights reserved.
//
#import "PhotoGroup.h"
@implementation PhotoGroup
@synthesize photoGroupName, photoGroupDescription, imageKey;
-(id)initWithPhotoGroupName:(NSString *)name photoGroupDescription:(NSString *)newDescription image:(UIImage *)newImage
{
self = [super init];
if (self) {
[self setPhotoGroupName:name];
[self setPhotoGroupDescription:photoGroupDescription];
//[self setFirstImage:newImage];
}
return self;
}
-(void)encodeWithCoder:(NSCoder *)aCoder
{
[aCoder encodeObject:photoGroupName forKey:@"photoGroupName"];
[aCoder encodeObject:photoGroupDescription forKey:@"photoGroupDescription"];
}
-(id)initWithCoder:(NSCoder *)aDecoder
{
self = [super init];
if (self) {
[self setPhotoGroupName:[aDecoder decodeObjectForKey:@"photoGroupName"]];
[self setPhotoGroupDescription:@"photoGroupDescription"];
}
return self;
}
-(NSString *)description
{
return [self photoGroupName];
}
@end