
主要变更: 1. 在 EPMomentPublishViewController 中添加情绪颜色选择按钮,用户可通过色轮选择情绪颜色。 2. 新增 EPEmotionColorStorage 类,提供情绪颜色的保存、获取和删除功能,支持动态 ID 的关联。 3. 新增 EPEmotionColorPicker 视图,提供环形布局的颜色选择器,增强用户体验。 4. 更新 EPMomentCell 和 EPMomentListView,以支持情绪颜色的显示和处理,确保动态展示的情绪效果。 此更新旨在提升用户交互体验,丰富动态发布功能,确保情绪颜色的有效管理和展示。
111 lines
3.3 KiB
Objective-C
111 lines
3.3 KiB
Objective-C
//
|
||
// MonentsInfoModel.h
|
||
// xplan-ios
|
||
//
|
||
// Created by 冯硕 on 2022/5/11.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
|
||
#import "UserVipInfoVo.h"
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
typedef NS_ENUM(NSInteger, MonentsContentType) {
|
||
///纯文字的
|
||
MonentsContentType_Text = 0,
|
||
///图片
|
||
MomentsContentType_Picture = 2
|
||
};
|
||
@class MomentsPicInfoModel;
|
||
@interface MomentsInfoModel : PIBaseModel
|
||
///类型
|
||
@property (nonatomic,assign) MonentsContentType 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) GenderType gender;
|
||
///头像
|
||
@property (nonatomic,copy) NSString *avatar;
|
||
///年龄
|
||
@property (nonatomic,assign) int age;
|
||
///内容
|
||
@property (nonatomic,strong) NSString *content;
|
||
///喜欢的次数
|
||
@property (nonatomic,copy) NSString *likeCount;
|
||
///我是否已经点赞
|
||
@property (nonatomic, assign) BOOL isLike;
|
||
///评论的次数
|
||
@property (nonatomic,copy) NSString *commentCount;
|
||
//发布时间
|
||
@property (nonatomic,copy) NSString *publishTime;
|
||
///等级
|
||
@property (nonatomic,strong) NSString *expertLevelPic;
|
||
///魅力等级
|
||
@property (nonatomic,strong) NSString *charmLevelPic;
|
||
///广场是否置顶
|
||
@property (nonatomic,assign) BOOL squareTop;
|
||
///话题是否置顶
|
||
@property (nonatomic,assign) BOOL topicTop;
|
||
///VIP信息
|
||
@property (nonatomic, strong) UserVipInfoVo *userVipInfoVO;
|
||
///发布的内容
|
||
@property (nonatomic,copy) NSArray<MomentsPicInfoModel *> *dynamicResList;
|
||
///头饰url地址
|
||
@property (nonatomic,copy) NSString *headwearPic;
|
||
///头饰url地址
|
||
@property (nonatomic,copy) NSString *headwearEffect;
|
||
///头饰类型, 1 = svga
|
||
@property (nonatomic, assign) NSInteger headwearType;
|
||
///是否在直播中
|
||
@property (nonatomic,copy) NSString *inRoomUid;
|
||
///显示的标签
|
||
@property (nonatomic,copy) NSArray<NSString *> *labelList;
|
||
///铭牌名称
|
||
@property (nonatomic, copy) NSString *nameplateWord;
|
||
///铭牌图片
|
||
@property (nonatomic, copy) NSString *nameplatePic;
|
||
///是否自定义铭牌,
|
||
@property(nonatomic,assign) BOOL isCustomWord;
|
||
///话题id
|
||
@property (nonatomic, assign) long worldId;
|
||
///话题名字
|
||
@property (nonatomic, copy) NSString *worldName;
|
||
///动态的id
|
||
@property (nonatomic,copy) NSString *dynamicId;
|
||
///情绪颜色(本地标注,Hex格式如 #FF0000)
|
||
@property (nonatomic, copy) NSString *emotionColor;
|
||
///是否是折叠起来的
|
||
@property (nonatomic,assign) BOOL isFold;
|
||
///cell的高度
|
||
@property (nonatomic,assign) CGFloat rowHeight;
|
||
///图片的高度
|
||
@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 MomentsPicInfoModel : PIBaseModel
|
||
///图片的地址
|
||
@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
|