summaryrefslogtreecommitdiff
path: root/Juick/Model
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-10-15 23:47:11 +0300
committerGravatar Vitaly Takmazov2017-10-15 23:47:11 +0300
commit8ae952ec8df2a713afeaef5960a88888e050c6fc (patch)
treeb7b09deed573336e5d274eed790c30ba57e4a910 /Juick/Model
parent6499148cb3f62e20534b62c181125ebeacfa3438 (diff)
WIP
Diffstat (limited to 'Juick/Model')
-rw-r--r--Juick/Model/Attachment.h18
-rw-r--r--Juick/Model/Attachment.m13
-rw-r--r--Juick/Model/Message.h2
3 files changed, 33 insertions, 0 deletions
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 <Foundation/Foundation.h>
+
+@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 <Foundation/Foundation.h>
#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