mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[Examples: ASDKgram] Initial commit of a new sample app - a 500px photo feed / social app using layout specs and nodes.
This commit is contained in:
27
examples/ASDKgram/Sample/CommentModel.h
Normal file
27
examples/ASDKgram/Sample/CommentModel.h
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// CommentModel.h
|
||||
// Flickrgram
|
||||
//
|
||||
// Created by Hannah Troisi on 3/9/16.
|
||||
// Copyright © 2016 Hannah Troisi. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
@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
|
||||
Reference in New Issue
Block a user