178 lines
4.8 KiB
Objective-C
178 lines
4.8 KiB
Objective-C
//
|
|
// DDDynamicModel.h
|
|
// DingDangApp
|
|
//
|
|
// Created by apple on 2023/5/31.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
@class MonentsPicInfoModel;
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface DDDynamicLocationModel : NSObject
|
|
@property (nonatomic, copy) NSString * lng;
|
|
@property (nonatomic, copy) NSString * lat;
|
|
@property (nonatomic, copy) NSString * id;
|
|
@property (nonatomic, copy) NSString * name;
|
|
|
|
@end
|
|
|
|
@interface DDDynamicModel : NSObject
|
|
/*
|
|
动态文字
|
|
*/
|
|
@property (nonatomic,copy) NSString * content;
|
|
/*
|
|
视频首帧
|
|
*/
|
|
@property (nonatomic,copy) NSString * cover_img;
|
|
/*
|
|
动态id
|
|
*/
|
|
@property (nonatomic, copy) NSString * id;
|
|
/*
|
|
图片数组
|
|
*/
|
|
@property (nonatomic,strong) NSMutableArray * imgs;
|
|
/*
|
|
是否显示位置
|
|
*/
|
|
@property (nonatomic, assign) NSInteger is_show_location;
|
|
/*
|
|
图片宽高比
|
|
*/
|
|
@property (nonatomic,copy) NSString * proportion;
|
|
/*
|
|
点赞数
|
|
*/
|
|
@property (nonatomic, copy) NSString * support;
|
|
@property (nonatomic, copy) NSString * comment_num;
|
|
/*
|
|
动态类型 imgs 图片 video 视频 text文字
|
|
*/
|
|
@property (nonatomic, copy) NSString * type_name;
|
|
//位置
|
|
//@property (nonatomic, strong) YVDynamicLocationModel *userDynamicLocation;
|
|
@property (nonatomic, copy) NSString * user_id;
|
|
/*
|
|
视频地址
|
|
*/
|
|
@property (nonatomic, copy) NSString * video;
|
|
@property (nonatomic, strong) AppUserModel * user;
|
|
@property (nonatomic, strong) NSString *userVipLevelIcon;
|
|
@property (nonatomic, strong) NSString *userVipLevel;
|
|
@property (nonatomic, strong) NSString *userVipExperience;
|
|
@property (nonatomic, assign) BOOL isOpening;
|
|
@property (nonatomic, assign, readonly) BOOL shouldShowMoreButton;
|
|
/*
|
|
是否点赞
|
|
*/
|
|
@property (nonatomic, assign) BOOL is_give_like;
|
|
/*
|
|
是否关注
|
|
*/
|
|
@property (nonatomic, assign) BOOL is_attention;
|
|
@property (nonatomic, copy) NSString *c_time;
|
|
/*
|
|
直播
|
|
*/
|
|
@property (nonatomic, assign) BOOL in_live;
|
|
/*
|
|
直播房间id
|
|
*/
|
|
@property (nonatomic, copy) NSString * in_live_room_id;
|
|
@property (nonatomic, strong) DDDynamicLocationModel *userDynamicLocation;
|
|
|
|
@property (nonatomic, assign) CGFloat rowHeight;
|
|
@property (nonatomic, assign) CGFloat picturesHeight;
|
|
@property (nonatomic, assign) CGFloat videoHeight;
|
|
@property (nonatomic, assign) CGFloat textHeight;
|
|
@property (nonatomic, copy) NSString * head_portrait_box;//头像框
|
|
|
|
|
|
|
|
///类型
|
|
@property (nonatomic,assign) int type;
|
|
///用户的uid
|
|
@property (nonatomic,copy) NSString *uid;
|
|
///昵称
|
|
@property (nonatomic,copy) NSString *nick;
|
|
///身份的类型
|
|
@property (nonatomic,assign) NSInteger defUser;
|
|
///是否是新用户
|
|
@property (nonatomic,assign) BOOL newUser;
|
|
///性别
|
|
@property (nonatomic,assign) int gender;
|
|
///头像
|
|
@property (nonatomic,copy) NSString *avatar;
|
|
///年龄
|
|
@property (nonatomic,assign) int age;
|
|
|
|
///喜欢的次数
|
|
@property (nonatomic,copy) NSString *likeCount;
|
|
///我是否已经点赞
|
|
@property (nonatomic, assign) BOOL isLike;
|
|
///评论的次数
|
|
@property (nonatomic,copy) NSString *commentCount;
|
|
//发布时间
|
|
@property (nonatomic,copy) NSString *publishTime;
|
|
///等级
|
|
@property (nonatomic,strong) NSString *experLevelPic;
|
|
///魅力等级
|
|
@property (nonatomic,strong) NSString *charmLevelPic;
|
|
///等级
|
|
@property (nonatomic,strong) NSString *experNewLevelPic;
|
|
///魅力等级
|
|
@property (nonatomic,strong) NSString *charmNewLevelPic;
|
|
///是否置顶
|
|
@property (nonatomic,assign) BOOL squareTop;
|
|
|
|
///发布的内容
|
|
@property (nonatomic,copy) NSArray*dynamicResList;
|
|
@property (nonatomic,copy) NSArray<MonentsPicInfoModel *> *dynamicResLists;
|
|
///头饰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;
|
|
///话题id
|
|
@property (nonatomic, assign) long worldId;
|
|
///话题名字
|
|
@property (nonatomic, copy) NSString *worldName;
|
|
///动态的id
|
|
@property (nonatomic,copy) NSString *dynamicId;
|
|
///是否是折叠起来的
|
|
@property (nonatomic,assign) BOOL isFold;
|
|
|
|
///图片的高度
|
|
@property (nonatomic,assign) CGFloat picHeight;
|
|
///文本内容的高度
|
|
@property (nonatomic,assign) CGFloat contentHeight;
|
|
///显示的内容的富文本
|
|
@property (nonatomic,strong) NSMutableAttributedString *contentAttribute;
|
|
///收起的
|
|
@property (nonatomic,strong, nullable) NSMutableAttributedString *foldAttribute;
|
|
// 文本行数
|
|
@property (nonatomic, assign) NSInteger numberOfText;
|
|
|
|
@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
|