Hannah Troisi 44d483b7fe [New Example] 500pxgram updates
- addressed all comments in PR except autolayout of UIKit code
2016-04-10 23:34:41 -07:00

25 lines
904 B
Objective-C

//
// CommentModel.h
// ASDKgram
//
// Created by Hannah Troisi on 3/9/16.
// Copyright © 2016 Hannah Troisi. All rights reserved.
//
@interface CommentModel : NSObject
@property (nonatomic, assign, readonly) NSUInteger ID;
@property (nonatomic, assign, readonly) NSUInteger commenterID;
@property (nonatomic, strong, readonly) NSString *commenterUsername;
@property (nonatomic, strong, readonly) NSString *commenterAvatarURL;
@property (nonatomic, strong, readonly) NSString *body;
@property (nonatomic, strong, readonly) NSString *uploadDateString;
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithDictionary:(NSDictionary *)photoDictionary NS_DESIGNATED_INITIALIZER;
- (NSAttributedString *)commentAttributedString;
- (NSAttributedString *)uploadDateAttributedStringWithFontSize:(CGFloat)size;
@end