| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- // 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
|