2019-12-19 17:32:49 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
|
*
|
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
2017-02-21 00:11:56 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
2019-10-31 15:17:38 +00:00
|
|
|
#import <IGListDiffKit/IGListDiffable.h>
|
2017-04-07 18:20:37 +00:00
|
|
|
|
|
|
|
|
@interface Post : NSObject <IGListDiffable>
|
|
|
|
|
|
|
|
|
|
@property (nonatomic, strong, readonly) NSString *username;
|
|
|
|
|
@property (nonatomic, strong, readonly) NSArray<NSString *> *comments;
|
|
|
|
|
|
|
|
|
|
- (instancetype)initWithUsername:(NSString *)username
|
|
|
|
|
comments:(NSArray<NSString *> *)comments NS_DESIGNATED_INITIALIZER;
|
|
|
|
|
|
|
|
|
|
- (instancetype)init NS_UNAVAILABLE;
|
|
|
|
|
+ (instancetype)new NS_UNAVAILABLE;
|
|
|
|
|
|
2017-02-21 00:11:56 +00:00
|
|
|
@end
|