// // YMChatNotificationCellViewModel.m // MSYOUPAI // // Created by YoMi on 2024/2/21. // Copyright © 2024 MS. All rights reserved. // #import "YMChatNotificationCellViewModel.h" @interface YMChatNotificationCellViewModel () /// 行标题 @property (nonatomic, copy, readwrite) NSString *rowTitle; /// 是否开启 @property (nonatomic, assign, readwrite) BOOL isOpen; /// 消息通知功能类型 @property (nonatomic, assign, readwrite) YMChatNotificationFunctionsType chatNotificationFunctionsType; @end @implementation YMChatNotificationCellViewModel - (void)ym_initialize{ [super ym_initialize]; NSDictionary *dic = [self.params dictionaryValueForKey:ParamsModel defaultValue:@{}]; self.rowTitle = [dic stringValueForKey:@"title" defaultValue:@""]; self.isOpen = [dic boolValueForKey:@"isOpen" defaultValue:NO]; self.chatNotificationFunctionsType = [dic integerValueForKey:ParamsCategoryType defaultValue:YMChatNotificationFunctionsTypePersonalizedRecommendation]; } @end