//
//  SDTimeLineCellModel.h
//  GSD_WeiXin(wechat)
//
//  Created by gsd on 16/2/25.
//  Copyright © 2016年 GSD. All rights reserved.
//

/*
 
 *********************************************************************************
 *
 * GSD_WeiXin
 *
 * QQ交流群: 459274049
 * Email : gsdios@126.com
 * GitHub: https://github.com/gsdios/GSD_WeiXin
 * 新浪微博:GSD_iOS
 *
 * 此“高仿微信”用到了很高效方便的自动布局库SDAutoLayout（一行代码搞定自动布局）
 * SDAutoLayout地址：https://github.com/gsdios/SDAutoLayout
 * SDAutoLayout视频教程：http://www.letv.com/ptv/vplay/24038772.html
 * SDAutoLayout用法示例：https://github.com/gsdios/SDAutoLayout/blob/master/README.md
 *
 *********************************************************************************
 
 */

#import <Foundation/Foundation.h>

typedef enum {
    SL_Update = 0,
    SL_CommentUpdate,
    SL_Detail
}SLMomentsUpdateType;


@class SDTimeLineCellLikeItemModel, SDTimeLineCellCommentItemModel;

@interface SDTimeLineCellModel : NSObject

@property (nonatomic, copy) NSString *userImg;
@property (nonatomic, copy) NSString *userId;
@property (nonatomic, copy) NSString *userName;
@property (nonatomic, copy) NSString *friendId;
@property (nonatomic, copy) NSString *friendContent;
@property (nonatomic, copy) NSString *friendImgUrl;
@property (nonatomic, copy) NSString *time;
@property (nonatomic, assign) BOOL isLike;
@property (nonatomic, assign) CGSize imageSize;

@property (nonatomic, strong) NSMutableArray<SDTimeLineCellLikeItemModel *> *likeItemsArray;
@property (nonatomic, strong) NSMutableArray<SDTimeLineCellCommentItemModel *> *list;

@property (nonatomic, strong) NSArray *likeStr;

@property (nonatomic, assign) BOOL isOpening;

@property (nonatomic, assign, readonly) BOOL shouldShowMoreButton;

@property (nonatomic, assign)SLMomentsUpdateType updateType;

@property (nonatomic, copy) NSAttributedString *attributedFriendContent;

@end


@interface SDTimeLineCellLikeItemModel : NSObject

@property (nonatomic, copy) NSString *userName;
@property (nonatomic, copy) NSString *userId;

@property (nonatomic, copy) NSAttributedString *attributedContent;

@end


@interface SDTimeLineCellCommentItemModel : NSObject

@property (nonatomic, copy) NSString *userName;
//当前
@property (nonatomic, copy) NSString *userId;
@property (nonatomic, copy) NSString *commendId;

@property (nonatomic, copy) NSString *friendId;
@property (nonatomic, copy) NSString *parentId;

@property (nonatomic, copy) NSString *content;
@property (nonatomic, copy) NSString *time;
//回复
@property (nonatomic, copy) NSString *replyUserName;

@property (nonatomic, copy) NSString *level;

@property (nonatomic, copy) NSString *orderByTime;
@property (nonatomic, copy) NSArray *children;



//
//@property (nonatomic, copy) NSString *commentString;
//
//@property (nonatomic, copy) NSString *firstUserName;
//@property (nonatomic, copy) NSString *firstUserId;
//
//@property (nonatomic, copy) NSString *secondUserName;
//@property (nonatomic, copy) NSString *secondUserId;
//
@property (nonatomic, copy) NSAttributedString *attributedContent;

@end
