2022-05-11 16:32:10 +08:00
|
|
|
//
|
|
|
|
// MonentsInfoModel.h
|
|
|
|
// xplan-ios
|
|
|
|
//
|
|
|
|
// Created by 冯硕 on 2022/5/11.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
#import "XPEnum.h"
|
2022-08-26 17:13:20 +08:00
|
|
|
#import "UserVipInfoVo.h"
|
2022-05-11 16:32:10 +08:00
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
typedef NS_ENUM(NSInteger, MonentsContentType) {
|
|
|
|
///纯文字的
|
|
|
|
MonentsContentType_Text = 0,
|
2022-08-26 17:13:20 +08:00
|
|
|
///图片
|
2022-05-17 00:20:01 +08:00
|
|
|
MonentsContentType_Picture = 2
|
2022-05-11 16:32:10 +08:00
|
|
|
};
|
|
|
|
@class MonentsPicInfoModel;
|
|
|
|
@interface MonentsInfoModel : NSObject
|
2022-05-12 18:15:15 +08:00
|
|
|
///类型
|
|
|
|
@property (nonatomic,assign) MonentsContentType type;
|
2022-05-11 16:32:10 +08:00
|
|
|
///用户的uid
|
|
|
|
@property (nonatomic,copy) NSString *uid;
|
|
|
|
///昵称
|
|
|
|
@property (nonatomic,copy) NSString *nick;
|
2022-05-12 18:15:15 +08:00
|
|
|
///身份的类型
|
|
|
|
@property (nonatomic,assign) NSInteger defUser;
|
|
|
|
///是否是新用户
|
|
|
|
@property (nonatomic,assign) BOOL newUser;
|
2022-05-11 16:32:10 +08:00
|
|
|
///性别
|
|
|
|
@property (nonatomic,assign) GenderType gender;
|
|
|
|
///头像
|
|
|
|
@property (nonatomic,copy) NSString *avatar;
|
|
|
|
///年龄
|
|
|
|
@property (nonatomic,assign) int age;
|
|
|
|
///内容
|
|
|
|
@property (nonatomic,strong) NSString *content;
|
|
|
|
///喜欢的次数
|
|
|
|
@property (nonatomic,copy) NSString *likeCount;
|
2022-05-12 18:15:15 +08:00
|
|
|
///我是否已经点赞
|
2022-06-27 20:04:54 +08:00
|
|
|
@property (nonatomic, assign) BOOL isLike;
|
2022-05-11 16:32:10 +08:00
|
|
|
///评论的次数
|
|
|
|
@property (nonatomic,copy) NSString *commentCount;
|
|
|
|
//发布时间
|
|
|
|
@property (nonatomic,copy) NSString *publishTime;
|
|
|
|
///等级
|
|
|
|
@property (nonatomic,strong) NSString *experLevelPic;
|
|
|
|
///魅力等级
|
|
|
|
@property (nonatomic,strong) NSString *charmLevelPic;
|
|
|
|
///是否置顶
|
|
|
|
@property (nonatomic,assign) BOOL squareTop;
|
2022-08-26 17:13:20 +08:00
|
|
|
///贵族信息
|
|
|
|
@property (nonatomic, strong) UserVipInfoVo *userVipInfoVO;
|
2022-05-11 16:32:10 +08:00
|
|
|
///发布的内容
|
|
|
|
@property (nonatomic,copy) NSArray<MonentsPicInfoModel *> *dynamicResList;
|
|
|
|
///头饰url地址
|
|
|
|
@property (nonatomic,copy) NSString *headwearPic;
|
|
|
|
///头饰url地址
|
|
|
|
@property (nonatomic,copy) NSString *headwearEffect;
|
|
|
|
///是否在直播中
|
|
|
|
@property (nonatomic,copy) NSString *inRoomUid;
|
|
|
|
///显示的标签
|
|
|
|
@property (nonatomic,copy) NSArray<NSString *> *labelList;
|
|
|
|
///铭牌名称
|
|
|
|
@property (nonatomic, copy) NSString *nameplateWord;
|
|
|
|
///铭牌图片
|
|
|
|
@property (nonatomic, copy) NSString *nameplatePic;
|
2022-05-12 18:15:15 +08:00
|
|
|
///话题id
|
2022-06-22 20:38:57 +08:00
|
|
|
@property (nonatomic, assign) long worldId;
|
2022-05-12 18:15:15 +08:00
|
|
|
///话题名字
|
2022-06-22 20:38:57 +08:00
|
|
|
@property (nonatomic, copy) NSString *worldName;
|
|
|
|
///动态的id
|
|
|
|
@property (nonatomic,copy) NSString *dynamicId;
|
2022-05-11 16:32:10 +08:00
|
|
|
///是否是折叠起来的
|
|
|
|
@property (nonatomic,assign) BOOL isFold;
|
|
|
|
///cell的高度
|
|
|
|
@property (nonatomic,assign) CGFloat rowHeight;
|
2022-05-13 11:32:35 +08:00
|
|
|
///图片的高度
|
|
|
|
@property (nonatomic,assign) CGFloat picHeight;
|
|
|
|
///文本内容的高度
|
|
|
|
@property (nonatomic,assign) CGFloat contentHeight;
|
|
|
|
///显示的内容的富文本
|
|
|
|
@property (nonatomic,strong) NSMutableAttributedString *contentAttribute;
|
|
|
|
///收起的
|
|
|
|
@property (nonatomic,strong, nullable) NSMutableAttributedString *foldAttribute;
|
2022-08-26 17:13:20 +08:00
|
|
|
// 文本行数
|
|
|
|
@property (nonatomic, assign) NSInteger numberOfText;
|
2022-05-11 16:32:10 +08:00
|
|
|
@end
|
|
|
|
|
|
|
|
@interface MonentsPicInfoModel : NSObject
|
|
|
|
///图片的地址
|
|
|
|
@property (nonatomic,copy) NSString * resUrl;
|
|
|
|
///格式
|
|
|
|
@property (nonatomic,copy) NSString *format;
|
|
|
|
///宽度
|
|
|
|
@property (nonatomic,assign) CGFloat width;
|
|
|
|
///高度
|
|
|
|
@property (nonatomic,assign) CGFloat height;
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
NS_ASSUME_NONNULL_END
|