-
Notifications
You must be signed in to change notification settings - Fork 0
/
MITPhoto.m
36 lines (31 loc) · 903 Bytes
/
MITPhoto.m
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
//
// MITPhoto.m
// PhotoVK
//
// Created by Dmitrii Bilukha on 12/28/14.
// Copyright (c) 2014 Dmitrii Bilukha. All rights reserved.
//
#import "MITPhoto.h"
@implementation MITPhoto
@synthesize pid, width, height, src, src_big, src_xbig, src_xxbig;
//init with all vars
-(id) initWithTitle:(NSString *)_title
Pid:(NSNumber*)_pid
Width:(NSNumber*)_width
Height:(NSNumber*)_height
Src:(NSString *)_src
Src_big:(NSString *)_src_big
Src_xbig:(NSString *)_src_xbig
Src_xxbig:(NSString *)_src_xxbig {
self = [super initWithTitle:_title thumbnailURL:_src_big];
self.pid = _pid;
self.width = _width;
self.height = _height;
self.src = _src;
self.src_big = _src_big;
self.src_xbig = _src_xbig;
self.src_xxbig = _src_xxbig;
self.linkTo = _src_big;
return self;
}
@end