From 8ae952ec8df2a713afeaef5960a88888e050c6fc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 15 Oct 2017 23:47:11 +0300 Subject: WIP --- Juick/Model/Attachment.h | 18 ++++++++++++++++++ Juick/Model/Attachment.m | 13 +++++++++++++ Juick/Model/Message.h | 2 ++ 3 files changed, 33 insertions(+) create mode 100644 Juick/Model/Attachment.h create mode 100644 Juick/Model/Attachment.m (limited to 'Juick/Model') diff --git a/Juick/Model/Attachment.h b/Juick/Model/Attachment.h new file mode 100644 index 0000000..26fc1c0 --- /dev/null +++ b/Juick/Model/Attachment.h @@ -0,0 +1,18 @@ +// +// Attachment.h +// Juick +// +// Created by Vitaly Takmazov on 15/10/2017. +// Copyright © 2017 com.juick. All rights reserved. +// + +#import + +@interface Attachment : NSObject +@property(nonatomic, strong) NSString *url; +@property(nonatomic, strong) NSNumber *width; +@property(nonatomic, strong) NSNumber *height; +@property(nonatomic, strong) Attachment *small; +@property(nonatomic, strong) Attachment *medium; +@property(nonatomic, strong) Attachment *thumbnail; +@end diff --git a/Juick/Model/Attachment.m b/Juick/Model/Attachment.m new file mode 100644 index 0000000..a54e462 --- /dev/null +++ b/Juick/Model/Attachment.m @@ -0,0 +1,13 @@ +// +// Attachment.m +// Juick +// +// Created by Vitaly Takmazov on 15/10/2017. +// Copyright © 2017 com.juick. All rights reserved. +// + +#import "Attachment.h" + +@implementation Attachment + +@end diff --git a/Juick/Model/Message.h b/Juick/Model/Message.h index 1b41315..5eab279 100644 --- a/Juick/Model/Message.h +++ b/Juick/Model/Message.h @@ -8,6 +8,7 @@ #import #import "User.h" +#import "Attachment.h" @interface Message : NSObject @@ -20,5 +21,6 @@ @property NSString *attach; @property NSString *repliesBy; @property NSNumber *repliesCount; +@property Attachment *attachment; @end -- cgit v1.2.3