// Generated by json_to_model #import "JDObject.h" #import "ModeModel.h" #import "CommonUtil.h" #import "CustomRadioGroup.h" @implementation ModeModel //+ (JSONKeyMapper *)keyMapper { // // NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; // // //self // [dictionary setValue:@"modeId" forKey:@"mode_id"]; // [dictionary setValue:@"basicModeCode" forKey:@"basic_mode_code"]; // [dictionary setValue:@"useYn" forKey:@"use_yn"]; // [dictionary setValue:@"imageFileName" forKey:@"image_file_name"]; // [dictionary setValue:@"modeName" forKey:@"mode_name"]; // // return [[JSONKeyMapper alloc] initWithDictionary:dictionary]; //} - (instancetype)initWithSubItem:(ItemSubModel *)subItem { if (self = [super init]) { self.modeId = subItem.cmdclsValue; self.modeName = subItem.sourceSubName; self.deleteYn = subItem.deleteYn; [[JDFacade facade] setRadioButtonStatus:@YES object:self]; } return self; } @end @implementation ModeListModel @end @implementation HomeLogModel - (NSString *)createDate { NSDateFormatter *df = [CommonUtil dateFormatter]; [df setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; [df setDateFormat:@"yyyyMMddHHmmss"]; NSDate *utcDate = [df dateFromString:_createDatetime]; NSDateFormatter* df_local = [[CommonUtil dateFormatter] copy]; [df_local setTimeZone:[NSTimeZone systemTimeZone]]; [df_local setDateFormat:@"yyyy.MM.dd"]; NSString* localString = [utcDate isToday] ? @"오늘" : [df_local stringFromDate:utcDate]; localString = [utcDate isYesterday] ? @"어제" : localString; return localString; } - (NSString *)createTime { NSDateFormatter *df = [CommonUtil dateFormatter]; [df setTimeZone:[NSTimeZone timeZoneWithAbbreviation:@"UTC"]]; [df setDateFormat:@"yyyyMMddHHmmss"]; NSDate *utcDate = [df dateFromString:_createDatetime]; NSDateFormatter* df_local = [[CommonUtil dateFormatter] copy]; [df_local setTimeZone:[NSTimeZone systemTimeZone]]; [df_local setDateFormat:@"HH:mm"]; NSString* localString = [df_local stringFromDate:utcDate]; return localString; } @end @implementation HomeLogListModel @end @implementation CameraModel @end @implementation DashboardModel @end @implementation PersonalNoticeModel @end @implementation PersonalNoticeListModel @end @implementation NoticeModel @end @implementation NoticeListModel @end @implementation FaqModel @end @implementation FaqListModel @end