mirror of
https://github.com/samsonjs/samhuri.net-ios.git
synced 2026-03-25 09:25:47 +00:00
22 lines
538 B
Objective-C
22 lines
538 B
Objective-C
//
|
|
// Created by Sami Samhuri on 15-04-24.
|
|
// Copyright (c) 2015 Guru Logic Inc. All rights reserved.
|
|
//
|
|
#import "PostCollection.h"
|
|
|
|
@implementation PostCollection
|
|
|
|
+ (instancetype)postCollectionWithTitle:(NSString *)title posts:(NSMutableArray *)posts {
|
|
return [[self alloc] initWithTitle:title posts:posts];
|
|
}
|
|
|
|
- (instancetype)initWithTitle:(NSString *)title posts:(NSMutableArray *)posts {
|
|
self = [super init];
|
|
if (self) {
|
|
_title = [title copy];
|
|
_posts = [posts mutableCopy];
|
|
}
|
|
return self;
|
|
}
|
|
|
|
@end
|