Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
28 lines (21 loc) · 615 Bytes

File metadata and controls

28 lines (21 loc) · 615 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
//
// VideoModel.m
// JSONModelDemo
//
// Created by Marin Todorov on 02/12/2012.
// Copyright (c) 2012 Underplot ltd. All rights reserved.
//
#import "VideoModel.h"
@implementation VideoModel
-(id)initWithDictionary:(NSDictionary*)d error:(NSError *__autoreleasing *)err
{
self = [super init];
if (self) {
self.title = [[VideoTitle alloc] initWithDictionary: d[@"title"] error:err];
if (!self.title) return nil;
self.link = [[VideoLink alloc] initWithDictionary: d[@"link"][0] error:err];
if (!self.link) return nil;
}
return self;
}
@end
Morty Proxy This is a proxified and sanitized view of the page, visit original site.