Initial commit
This commit is contained in:
Vendored
BIN
Binary file not shown.
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// DropViewModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/11.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface DropViewModel : NSObject
|
||||
@property(nonatomic,copy)NSString*showname;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// DropViewModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/11.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "DropViewModel.h"
|
||||
|
||||
@implementation DropViewModel
|
||||
|
||||
@end
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// IfishBannerData.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/22.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface IfishBannerData : NSObject
|
||||
|
||||
@property(nonatomic)NSInteger adId;
|
||||
@property(nonatomic)NSInteger adType;
|
||||
@property(nonatomic,copy)NSString *adImage;
|
||||
@property(nonatomic,copy)NSString *adLink;
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// IfishBannerData.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/22.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishBannerData.h"
|
||||
|
||||
@implementation IfishBannerData
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
if (self = [super init]) {
|
||||
_adId = [[dict objectForKey:@"adId"] integerValue];
|
||||
_adType = [[dict objectForKey:@"adType"] integerValue];
|
||||
_adImage = [dict objectForKey:@"adImage"];
|
||||
_adLink = [dict objectForKey:@"adLink"];
|
||||
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// BrandModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/24.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface BrandModel : NSObject
|
||||
@property(nonatomic,copy)NSString*venderId;
|
||||
@property(nonatomic,copy)NSString*brandName;
|
||||
@property(nonatomic,copy)NSString*brandIntroduce;
|
||||
@property(nonatomic,copy)NSString*appShow;
|
||||
@property(nonatomic,copy)NSString*logo;
|
||||
@property(nonatomic,copy)NSString*brandCode;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// BrandModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/24.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "BrandModel.h"
|
||||
|
||||
@implementation BrandModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// ChatViewModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/23.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ChatViewModel : NSObject
|
||||
@property(nonatomic,copy)NSString*chatViewLabel;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ChatViewModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/23.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ChatViewModel.h"
|
||||
|
||||
@implementation ChatViewModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// MyChatRoomModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/12/1.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface MyChatRoomModel : NSObject
|
||||
@property(nonatomic,copy)NSString*chatRoomNameLabel;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// MyChatRoomModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/12/1.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "MyChatRoomModel.h"
|
||||
|
||||
@implementation MyChatRoomModel
|
||||
|
||||
@end
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,54 @@
|
||||
//
|
||||
// CertificationShopModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/8/18.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface CertificationShopModel : NSObject
|
||||
|
||||
@property(nonatomic,copy)NSString *picture1;
|
||||
|
||||
@property(nonatomic,copy)NSString *picture2;
|
||||
|
||||
@property(nonatomic,copy)NSString *picture3;
|
||||
|
||||
@property(nonatomic,copy)NSString *picture4;
|
||||
|
||||
|
||||
@property(nonatomic,copy)NSString *reason;
|
||||
|
||||
@property(nonatomic,copy)NSString *shopsAddress;
|
||||
|
||||
@property(nonatomic,copy)NSString *shopsArea;
|
||||
|
||||
@property(nonatomic,copy)NSString *shopsCity;
|
||||
|
||||
@property(nonatomic,copy)NSString *shopsId;
|
||||
|
||||
@property(nonatomic,copy)NSString *shopsName;
|
||||
|
||||
@property(nonatomic,copy)NSString *shopsPhone;
|
||||
|
||||
@property(nonatomic,copy)NSString *shopsProvince;
|
||||
|
||||
@property(nonatomic,copy)NSString *status;
|
||||
|
||||
@property(nonatomic,copy)NSString *userId;
|
||||
|
||||
@property(nonatomic,copy)NSString *userName;
|
||||
|
||||
@property(nonatomic,copy)NSString *userImg;
|
||||
|
||||
@property(nonatomic,copy)NSString *wechat;
|
||||
|
||||
@property(nonatomic,copy)NSString *shoplink;
|
||||
|
||||
@property(nonatomic,copy)NSString *remark;
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,88 @@
|
||||
//
|
||||
// CertificationShopModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/8/18.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import "CertificationShopModel.h"
|
||||
|
||||
@implementation CertificationShopModel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
[aCoder encodeObject:self forKey:@"picture1"];
|
||||
[aCoder encodeObject:self forKey:@"picture2"];
|
||||
[aCoder encodeObject:self forKey:@"picture3"];
|
||||
[aCoder encodeObject:self forKey:@"picture4"];
|
||||
[aCoder encodeObject:self forKey:@"reason"];
|
||||
[aCoder encodeObject:self forKey:@"wechat"];
|
||||
[aCoder encodeObject:self forKey:@"shoplink"];
|
||||
[aCoder encodeObject:self forKey:@"shopsAddress"];
|
||||
[aCoder encodeObject:self forKey:@"shopsArea"];
|
||||
[aCoder encodeObject:self forKey:@"shopsCity"];
|
||||
[aCoder encodeObject:self forKey:@"shopsId"];
|
||||
[aCoder encodeObject:self forKey:@"shopsName"];
|
||||
[aCoder encodeObject:self forKey:@"shopsPhone"];
|
||||
[aCoder encodeObject:self forKey:@"shopsProvince"];
|
||||
[aCoder encodeObject:self forKey:@"status"];
|
||||
[aCoder encodeObject:self forKey:@"userId"];
|
||||
[aCoder encodeObject:self forKey:@"userName"];
|
||||
[aCoder encodeObject:self forKey:@"userImg"];
|
||||
[aCoder encodeObject:self forKey:@"remark"];
|
||||
}
|
||||
//解挡时调用
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
|
||||
if (self=[super init]) {
|
||||
|
||||
self.picture1=[aDecoder decodeObjectForKey:@"picture1"];
|
||||
self.picture2=[aDecoder decodeObjectForKey:@"picture2"];
|
||||
self.picture3=[aDecoder decodeObjectForKey:@"picture3"];
|
||||
self.picture4=[aDecoder decodeObjectForKey:@"picture4"];
|
||||
self.reason=[aDecoder decodeObjectForKey:@"reason"];
|
||||
self.wechat=[aDecoder decodeObjectForKey:@"wechat"];
|
||||
self.shoplink = [aDecoder decodeObjectForKey:@"shoplink"];
|
||||
self.shopsAddress=[aDecoder decodeObjectForKey:@"shopsAddress"];
|
||||
self.shopsArea=[aDecoder decodeObjectForKey:@"shopsArea"];
|
||||
self.shopsCity=[aDecoder decodeObjectForKey:@"shopsCity"];
|
||||
self.shopsId=[aDecoder decodeObjectForKey:@"shopsId"];
|
||||
self.shopsName=[aDecoder decodeObjectForKey:@"shopsName"];
|
||||
self.shopsPhone=[aDecoder decodeObjectForKey:@"shopsPhone"];
|
||||
self.shopsProvince = [aDecoder decodeObjectForKey:@"shopsProvince"];
|
||||
self.status = [aDecoder decodeObjectForKey:@"status"];
|
||||
self.userId = [aDecoder decodeObjectForKey:@"userId"];
|
||||
self.userName = [aDecoder decodeObjectForKey:@"userName"];
|
||||
self.userImg = [aDecoder decodeObjectForKey:@"userImg"];
|
||||
self.remark =[aDecoder decodeObjectForKey:@"remark"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
if (self = [super init]) {
|
||||
_picture1 = dict[@"picture1"];
|
||||
_picture2 = dict[@"picture2"];
|
||||
_picture3 = dict[@"picture3"];
|
||||
_picture4 = dict[@"picture4"];
|
||||
_reason = dict[@"reason"];
|
||||
_wechat = dict[@"wechat"];
|
||||
_shoplink = dict[@"shoplink"];
|
||||
_shopsAddress = dict[@"shopsAddress"];
|
||||
_shopsArea = dict[@"shopsArea"];
|
||||
_shopsCity = dict[@"shopsCity"];
|
||||
_shopsId = dict[@"shopsId"];
|
||||
_shopsName = dict[@"shopsName"];
|
||||
_shopsPhone = dict[@"shopsPhone"];
|
||||
_shopsProvince = dict[@"shopsProvince"];
|
||||
_status = dict[@"status"];
|
||||
_userId = dict[@"userId"];
|
||||
_userName = dict[@"userName"];
|
||||
_userImg = dict[@"userImg"];
|
||||
_remark = dict[@"remark"];
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// ChatroomModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/12/3.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ChatroomModel : NSObject
|
||||
|
||||
@property(nonatomic,copy)NSString*createTime;
|
||||
//@property(nonatomic,copy)NSString*description ;
|
||||
@property(nonatomic,copy)NSString*roomId;
|
||||
@property(nonatomic,copy)NSString*roomName;
|
||||
@property(nonatomic,copy)NSString*venderId;
|
||||
@end
|
||||
@@ -0,0 +1,29 @@
|
||||
//
|
||||
// ChatroomModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/12/3.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ChatroomModel.h"
|
||||
|
||||
@implementation ChatroomModel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
[aCoder encodeObject:self forKey:@"venderId"];
|
||||
[aCoder encodeObject:self forKey:@"createTime"];
|
||||
[aCoder encodeObject:self forKey:@"roomId"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"roomName"];
|
||||
}
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]){
|
||||
self.venderId=[aDecoder decodeObjectForKey:@"venderId"];
|
||||
self.createTime=[aDecoder decodeObjectForKey:@"createTime"];
|
||||
self.roomId=[aDecoder decodeObjectForKey:@"roomId"];
|
||||
self.roomName=[aDecoder decodeObjectForKey:@"roomName"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// DeviceCameraModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/7/1.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface DeviceCameraModel : NSObject
|
||||
@property(nonatomic,copy) NSString *cameraId;
|
||||
@property(nonatomic,copy) NSString *deviceId;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// DeviceCameraModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/7/1.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import "DeviceCameraModel.h"
|
||||
|
||||
@implementation DeviceCameraModel
|
||||
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
|
||||
[aCoder encodeObject:self forKey:@"deviceId"];
|
||||
[aCoder encodeObject:self forKey:@"cameraId"];
|
||||
}
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
|
||||
if (self=[super init]) {
|
||||
|
||||
self.deviceId = [aDecoder decodeObjectForKey:@"deviceId"];
|
||||
self.cameraId = [aDecoder decodeObjectForKey:@"cameraId"];
|
||||
}
|
||||
return self;
|
||||
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,96 @@
|
||||
//
|
||||
// DeviceModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/6.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface DeviceModel : NSObject
|
||||
// 设备 Device
|
||||
//是否是主控制权,1是,0分配的控制权
|
||||
@property(nonatomic,copy)NSString *isMaster;
|
||||
//设备ID
|
||||
@property(nonatomic,copy)NSString *deviceId;
|
||||
//显示名称
|
||||
@property(nonatomic,copy)NSString *showName;
|
||||
//设备mac地址
|
||||
@property(nonatomic,copy)NSString *macAddress;
|
||||
//今天是否需要提醒
|
||||
@property(nonatomic,copy)NSString *todayRemind;
|
||||
//提醒开关
|
||||
@property(nonatomic,copy)NSString *waterRemind;
|
||||
//提醒周期
|
||||
@property(nonatomic,copy)NSString *remindCycle;
|
||||
// 是否授权
|
||||
@property(nonatomic,copy)NSString *isBlacklist;
|
||||
@property(nonatomic,copy)NSString*brandName;//厂家名称
|
||||
@property(nonatomic,copy)NSString*brandIntroduce;//厂家介绍
|
||||
@property(nonatomic,copy)NSString*logo;
|
||||
//新加水族箱 硬件设备类型
|
||||
@property(nonatomic,copy) NSString *type;
|
||||
|
||||
|
||||
//以下字段新设备可以不用 只按type 分类 老设备暂时加上
|
||||
//设备IP
|
||||
@property(nonatomic,copy)NSString *deviceIp;
|
||||
|
||||
//设备最后一次登陆时间
|
||||
@property(nonatomic,copy)NSString *loginTime;
|
||||
|
||||
//控制数
|
||||
@property(nonatomic,assign) NSNumber * controlAmount;
|
||||
|
||||
//定时器数
|
||||
@property(nonatomic,assign) NSNumber * timerAmount;
|
||||
|
||||
//图标 根地址
|
||||
@property(nonatomic,copy) NSString *iconLink;
|
||||
//是否自定义图标
|
||||
|
||||
@property(nonatomic,copy) NSString *isCustomIcon;
|
||||
|
||||
//所有图标名
|
||||
@property(nonatomic,copy) NSString *allIconName;
|
||||
|
||||
//自定义选择的名称,用逗号分割
|
||||
@property(nonatomic,copy) NSString *allShowName;
|
||||
//保存的图标名称 用逗号分割
|
||||
@property(nonatomic,copy) NSString *customIconName;
|
||||
|
||||
//保存的 图标名字 用逗号分割
|
||||
@property(nonatomic,copy) NSString *customShowName;
|
||||
|
||||
// 默认图标名称,用逗号分割
|
||||
@property(nonatomic,copy) NSString *defaultIconName;
|
||||
|
||||
//默认图标名字
|
||||
@property(nonatomic,copy) NSString *defaultShowName;
|
||||
|
||||
//更新时间 缓存时间
|
||||
@property(nonatomic,copy)NSString *updateTime;
|
||||
|
||||
//是否有背光
|
||||
@property(nonatomic,copy)NSString *isLightness;
|
||||
|
||||
//是否有柜灯
|
||||
@property(nonatomic,copy)NSString *isSarkLamp;
|
||||
|
||||
//有无工作模式
|
||||
@property(nonatomic,copy)NSString *isWorkModel;
|
||||
|
||||
@property(nonatomic,copy) NSString *isPushWendu;
|
||||
|
||||
@property(nonatomic,copy) NSString *userId;
|
||||
|
||||
@property(nonatomic,copy) NSString *venderDto;
|
||||
|
||||
// 厂家 信息vender
|
||||
//厂家
|
||||
@property(nonatomic,copy)NSString*appShow;
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,140 @@
|
||||
//
|
||||
// DeviceModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/6.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "DeviceModel.h"
|
||||
|
||||
@implementation DeviceModel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
|
||||
|
||||
[aCoder encodeObject:self forKey:@"showName"];
|
||||
[aCoder encodeObject:self forKey:@"macAddress"];
|
||||
[aCoder encodeObject:self forKey:@"isMaster"];
|
||||
[aCoder encodeObject:self forKey:@"todayRemind"];
|
||||
[aCoder encodeObject:self forKey:@"waterRemind"];
|
||||
[aCoder encodeObject:self forKey:@"remindCycle"];
|
||||
[aCoder encodeObject:self forKey:@"isBlacklist"];
|
||||
[aCoder encodeObject:self forKey:@"brandIntroduce"];
|
||||
[aCoder encodeObject:self forKey:@"brandName"];
|
||||
[aCoder encodeObject:self forKey:@"logo"];
|
||||
[aCoder encodeObject:self forKey:@"type"];
|
||||
[aCoder encodeObject:self forKey:@"deviceId"];
|
||||
|
||||
//以下字段新设备可以不用 只按type 分类 老设备暂时加上
|
||||
[aCoder encodeObject:self forKey:@"deviceIp"];
|
||||
[aCoder encodeObject:self forKey:@"loginTime"];
|
||||
[aCoder encodeObject:self forKey:@"controlAmount"];
|
||||
[aCoder encodeObject:self forKey:@"timerAmount"];
|
||||
[aCoder encodeObject:self forKey:@"iconLink"];
|
||||
[aCoder encodeObject:self forKey:@"isCustomIcon"];
|
||||
[aCoder encodeObject:self forKey:@"allIconName"];
|
||||
[aCoder encodeObject:self forKey:@"allShowName"];
|
||||
[aCoder encodeObject:self forKey:@"customIconName"];
|
||||
[aCoder encodeObject:self forKey:@"customShowName"];
|
||||
[aCoder encodeObject:self forKey:@"defaultIconName"];
|
||||
[aCoder encodeObject:self forKey:@"defaultShowName"];
|
||||
[aCoder encodeObject:self forKey:@"updateTime"];
|
||||
[aCoder encodeObject:self forKey:@"isPushWendu"];
|
||||
[aCoder encodeObject:self forKey:@"userId"];
|
||||
[aCoder encodeObject:self forKey:@"venderDto"];
|
||||
[aCoder encodeObject:self forKey:@"appShow"];
|
||||
|
||||
|
||||
}
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]) {
|
||||
self.isMaster=[aDecoder decodeObjectForKey:@"isMaster"];
|
||||
self.deviceId=[aDecoder decodeObjectForKey:@"deviceId"];
|
||||
self.showName=[aDecoder decodeObjectForKey:@"showName"];
|
||||
self.macAddress=[aDecoder decodeObjectForKey:@"macAddress"];
|
||||
self.todayRemind=[aDecoder decodeObjectForKey:@"todayRemind"];
|
||||
self.waterRemind=[aDecoder decodeObjectForKey:@"waterRemind"];
|
||||
self.remindCycle=[aDecoder decodeObjectForKey:@"remindCycle"];
|
||||
self.isBlacklist = [aDecoder decodeObjectForKey:@"isBlacklist"];
|
||||
self.brandName = [aDecoder decodeObjectForKey:@"brandName"];
|
||||
self.brandIntroduce = [aDecoder decodeObjectForKey:@"brandIntroduce"];
|
||||
self.logo = [aDecoder decodeObjectForKey:@"logo"];
|
||||
self.type = [aDecoder decodeObjectForKey:@"type"];
|
||||
//以下字段新设备可以不用 只按type 分类 老设备暂时加上
|
||||
self.deviceIp=[aDecoder decodeObjectForKey:@"deviceIp"];
|
||||
self.loginTime=[aDecoder decodeObjectForKey:@"loginTime"];
|
||||
self.controlAmount=(NSNumber*)[aDecoder decodeObjectForKey:@"controlAmount"];
|
||||
self.timerAmount=(NSNumber*)[aDecoder decodeObjectForKey:@"timerAmount"];
|
||||
|
||||
self.iconLink=[aDecoder decodeObjectForKey:@"iconLink"];
|
||||
self.isCustomIcon=[aDecoder decodeObjectForKey:@"isCustomIcon"];
|
||||
self.allShowName=[aDecoder decodeObjectForKey:@"allShowName"];
|
||||
self.customIconName=[aDecoder decodeObjectForKey:@"customIconName"];
|
||||
self.customShowName=[aDecoder decodeObjectForKey:@"customShowName"];
|
||||
self.defaultIconName=[aDecoder decodeObjectForKey:@"defaultIconName"];
|
||||
self.defaultShowName=[aDecoder decodeObjectForKey:@"defaultShowName"];
|
||||
self.allIconName=[aDecoder decodeObjectForKey:@"allIconName"];
|
||||
self.updateTime=[aDecoder decodeObjectForKey:@"updateTime"];
|
||||
self.isLightness=[aDecoder decodeObjectForKey:@"isLightness"];
|
||||
self.isSarkLamp=[aDecoder decodeObjectForKey:@"isSarkLamp"];
|
||||
self.isWorkModel=[aDecoder decodeObjectForKey:@"isWorkModel"];
|
||||
self.isPushWendu = [aDecoder decodeObjectForKey:@"isPushWendu"];
|
||||
self.userId=[aDecoder decodeObjectForKey:@"userId"];
|
||||
self.venderDto=[aDecoder decodeObjectForKey:@"venderDto"];
|
||||
|
||||
|
||||
}
|
||||
|
||||
return self;
|
||||
}
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
if (self=[super init]) {
|
||||
_deviceId=dict[@"deviceId"];
|
||||
_showName=dict[@"showName"];
|
||||
_macAddress=dict[@"macAddress"];
|
||||
_isMaster=dict[@"isMaster"];
|
||||
_todayRemind=dict[@"todayRemind"];
|
||||
_waterRemind=dict[@"waterRemind"];
|
||||
_remindCycle=dict[@"remindCycle"];
|
||||
_isBlacklist=dict[@"isBlacklist"];
|
||||
_type = dict[@"type"];
|
||||
|
||||
//以下字段新设备可以不用 只按type 分类 老设备暂时加上
|
||||
_loginTime=dict[@"loginTime"];
|
||||
_userId=dict[@"userId"];
|
||||
_controlAmount=(NSNumber*)dict[@"controlAmount"] ;
|
||||
_timerAmount=(NSNumber*)dict[@"timerAmount"] ;
|
||||
_customIconName=dict[@"customIconName"];
|
||||
_customShowName=dict[@"customShowName"];
|
||||
_allShowName=dict[@"allShowName"];
|
||||
_defaultShowName=dict[@"defaultShowName"];
|
||||
_defaultIconName=dict[@"defaultIconName"];
|
||||
_iconLink=dict[@"iconLink"];
|
||||
_isCustomIcon=dict[@"isCustomIcon"];
|
||||
_allIconName=dict[@"allIconName"];
|
||||
_updateTime=dict[@"updateTime"];
|
||||
_isLightness=dict[@"isLightness"];
|
||||
_isSarkLamp=dict[@"isSarkLamp"];
|
||||
_isWorkModel=dict[@"isWorkModel"];
|
||||
_isPushWendu = dict[@"isPushWendu"];
|
||||
_venderDto=dict[@"venderDto"];
|
||||
_deviceIp=dict[@"deviceIp"];
|
||||
|
||||
if ([_venderDto isEqual:[NSNull null]]) {
|
||||
_venderDto=@"";
|
||||
}else{
|
||||
|
||||
NSDictionary*venderDic=dict[@"venderDto"];
|
||||
_brandName=venderDic[@"brandName"];
|
||||
_brandIntroduce=venderDic[@"brandIntroduce"];
|
||||
_logo=venderDic[@"logo"];
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// FishTankModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/2.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface FishTankModel : NSObject
|
||||
@property(nonatomic,copy)NSString*brandImage;
|
||||
@property(nonatomic,copy)NSString*brandName;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// FishTankModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/2.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "FishTankModel.h"
|
||||
|
||||
@implementation FishTankModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// IfishNewsModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/11/3.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface IfishNewsModel : NSObject
|
||||
|
||||
@property(nonatomic,copy)NSString*infoId;
|
||||
@property(nonatomic,copy)NSString*title;
|
||||
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// IfishNewsModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/11/3.
|
||||
// Copyright © 2016年 lianxiang. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishNewsModel.h"
|
||||
|
||||
@implementation IfishNewsModel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder
|
||||
{
|
||||
[aCoder encodeObject:self forKey:@"infoId"];
|
||||
[aCoder encodeObject:self forKey:@"title"];
|
||||
|
||||
}
|
||||
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
|
||||
if (self=[super init]) {
|
||||
|
||||
self.infoId = [aDecoder decodeObjectForKey:@"infoId"];
|
||||
self.title = [aDecoder decodeObjectForKey:@"title"];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
|
||||
if (self = [super init]) {
|
||||
|
||||
self.infoId = [dict objectForKey:@"infoId"];
|
||||
self.title = [dict objectForKey:@"title"];
|
||||
}
|
||||
return self;
|
||||
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,32 @@
|
||||
//
|
||||
// IfishUserAsset.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/7.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface IfishUserAsset : NSObject
|
||||
//签到天数
|
||||
@property (nonatomic)NSInteger keepSigninNum;
|
||||
@property (nonatomic,copy)NSString *lastLoginDate;
|
||||
|
||||
//今天是否签到
|
||||
@property (nonatomic) BOOL toDaySignin;
|
||||
//等级
|
||||
@property (nonatomic,copy) NSString *gradeNum;
|
||||
@property (nonatomic,copy) NSString *gradeValue;
|
||||
@property (nonatomic,copy) NSString *gradeName;
|
||||
//金币
|
||||
@property (nonatomic) NSInteger goldValue;
|
||||
//是否砸过金蛋
|
||||
@property (nonatomic) BOOL isHitGoldenEgg;
|
||||
//增加的经验值或金币值
|
||||
@property (nonatomic) NSInteger addValue;
|
||||
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,56 @@
|
||||
//
|
||||
// IfishUserAsset.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/3/7.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishUserAsset.h"
|
||||
|
||||
@implementation IfishUserAsset
|
||||
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
[aCoder encodeObject:self forKey:@"gradeNum"];
|
||||
[aCoder encodeObject:self forKey:@"gradeValue"];
|
||||
[aCoder encodeObject:self forKey:@"gradeName"];
|
||||
[aCoder encodeInteger:self.keepSigninNum forKey:@"keepSigninNum"];
|
||||
[aCoder encodeInteger:self.goldValue forKey:@"goldValue"];
|
||||
[aCoder encodeBool:self.toDaySignin forKey:@"toDaySignin"];
|
||||
[aCoder encodeBool:self.isHitGoldenEgg forKey:@"isHitGoldenEgg"];
|
||||
[aCoder encodeInteger:self.addValue forKey:@"addValue"];
|
||||
}
|
||||
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]) {
|
||||
self.gradeNum=[aDecoder decodeObjectForKey:@"gradeNum"];
|
||||
self.gradeValue=[aDecoder decodeObjectForKey:@"gradeValue"];
|
||||
self.gradeName = [aDecoder decodeObjectForKey:@"gradeName"];
|
||||
self.keepSigninNum = [aDecoder decodeIntegerForKey:@"keepSigninNum"];
|
||||
self.goldValue = [aDecoder decodeIntegerForKey:@"goldValue"];
|
||||
self.toDaySignin = [aDecoder decodeBoolForKey:@"toDaySignin"];
|
||||
self.lastLoginDate = [aDecoder decodeObjectForKey:@"lastLoginDate"];
|
||||
self.isHitGoldenEgg = [aDecoder decodeBoolForKey:@"isHitGoldenEgg"];
|
||||
self.addValue = [aDecoder decodeIntegerForKey:@"addValue"];
|
||||
|
||||
}
|
||||
|
||||
return self;
|
||||
|
||||
}
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
self.gradeNum = (NSString*)dict[@"gradeNum"];
|
||||
self.gradeValue = (NSString*)dict[@"gradeValue"];
|
||||
self.gradeName = dict[@"gradeName"];
|
||||
self.keepSigninNum = [[dict objectForKey:@"keepSigninNum"] integerValue];
|
||||
self.goldValue =[[dict objectForKey:@"goldValue"] integerValue];
|
||||
self.toDaySignin = [[dict objectForKey:@"toDaySignin"] boolValue];
|
||||
self.lastLoginDate = dict[@"lastLoginDate"];
|
||||
self.isHitGoldenEgg = [[dict objectForKey:@"isHitGoldenEgg"] boolValue];
|
||||
self.addValue = [[dict objectForKey:@"addValue"] integerValue];
|
||||
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// InfoModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/1.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface InfoModel : NSObject
|
||||
@property(nonatomic,copy)NSString*title;
|
||||
@property(nonatomic,copy)NSString*info;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// InfoModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/1.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "InfoModel.h"
|
||||
|
||||
@implementation InfoModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// SetTimeModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/1.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface SetTimeModel : NSObject
|
||||
@property(nonatomic,copy)NSString*title;
|
||||
@property(nonatomic,copy)NSString*timestring;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// SetTimeModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/1.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "SetTimeModel.h"
|
||||
|
||||
@implementation SetTimeModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ShopNameCellModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ShopNameCellModel : NSObject
|
||||
@property(nonatomic,copy)NSString*shopName;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ShopNameCellModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ShopNameCellModel.h"
|
||||
|
||||
@implementation ShopNameCellModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// TemperatureSetModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/26.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
// 设置温度 展示
|
||||
@interface TemperatureSetModel : NSObject
|
||||
@property(nonatomic,copy)NSString*title;
|
||||
@property(nonatomic,copy)NSString*temperatureLabel;
|
||||
//@property(nonatomic);
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// TemperatureSetModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/26.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TemperatureSetModel.h"
|
||||
|
||||
@implementation TemperatureSetModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,34 @@
|
||||
//
|
||||
// UserModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/9/27.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface UserModel : NSObject
|
||||
|
||||
@property(nonatomic,copy)NSString*phoneNumber;
|
||||
@property(nonatomic,strong)NSNumber*userId;
|
||||
@property(nonatomic,copy)NSString*nickName;
|
||||
@property(nonatomic,copy)NSString*userSex;
|
||||
@property(nonatomic,copy)NSString*signature;//用户签名
|
||||
@property(nonatomic,copy)NSString*userImg;
|
||||
@property(nonatomic,copy) NSString *P2PVerifyCode1;
|
||||
@property(nonatomic,copy) NSString *P2PVerifyCode2;
|
||||
@property(nonatomic,copy) NSString *gwellUserID;
|
||||
//商铺Id
|
||||
@property(nonatomic,copy) NSString *shopsUserId;
|
||||
//用户类型 1 商家用户 0 普通用户
|
||||
@property(nonatomic,copy) NSString *userType;
|
||||
//云信token
|
||||
@property(nonatomic,copy) NSString *neteaseToken;
|
||||
//v4.2 后已去字段
|
||||
//@property(nonatomic,copy)NSString*updateTime;//用户信息最后一次更新时间
|
||||
//@property(nonatomic,strong)NSNumber*timestamp;//服务器时间戳,用于APP内置时钟
|
||||
//@property(nonatomic,copy)NSString*token;
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// UserModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/9/27.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "UserModel.h"
|
||||
|
||||
@implementation UserModel
|
||||
// 归档时调用
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
[aCoder encodeObject:self forKey:@"phoneNumber"];
|
||||
[aCoder encodeObject:self forKey:@"userId"];
|
||||
[aCoder encodeObject:self forKey:@"nickName"];
|
||||
[aCoder encodeObject:self forKey:@"userSex"];
|
||||
[aCoder encodeObject:self forKey:@"userImg"];
|
||||
[aCoder encodeObject:self forKey:@"signature"];
|
||||
[aCoder encodeObject:self forKey:@"P2PVerifyCode1"];
|
||||
[aCoder encodeObject:self forKey:@"P2PVerifyCode2"];
|
||||
[aCoder encodeObject:self forKey:@"gwellUserID"];
|
||||
[aCoder encodeObject:self forKey:@"shopsUserId"];
|
||||
[aCoder encodeObject:self forKey:@"userType"];
|
||||
[aCoder encodeObject:self forKey:@"neteaseToken"];
|
||||
|
||||
}
|
||||
//解挡时调用
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
|
||||
if (self=[super init]) {
|
||||
self.phoneNumber=[aDecoder decodeObjectForKey:@"phoneNumber"];
|
||||
self.userId=[aDecoder decodeObjectForKey:@"userId"];
|
||||
self.nickName=[aDecoder decodeObjectForKey:@"nickName"];
|
||||
self.userSex=[aDecoder decodeObjectForKey:@"userSex"];
|
||||
self.userImg=[aDecoder decodeObjectForKey:@"userImg"];
|
||||
self.signature=[aDecoder decodeObjectForKey:@"signature"];
|
||||
self.P2PVerifyCode1 = [aDecoder decodeObjectForKey:@"P2PVerifyCode1"];
|
||||
self.P2PVerifyCode2 = [aDecoder decodeObjectForKey:@"P2PVerifyCode2"];
|
||||
self.gwellUserID = [aDecoder decodeObjectForKey:@"gwellUserID"];
|
||||
self.shopsUserId = [aDecoder decodeObjectForKey:@"shopsUserId"];
|
||||
self.userType = [aDecoder decodeObjectForKey:@"userType"];
|
||||
self.neteaseToken = [aDecoder decodeObjectForKey:@"neteaseToken"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
if (self=[super init]) {
|
||||
_phoneNumber = [dict objectForKey:@"phoneNumber"];
|
||||
_userId = [dict objectForKey:@"userId"];
|
||||
_nickName = [dict objectForKey:@"nickName"];
|
||||
_userSex = [dict objectForKey:@"userSex"];
|
||||
_userImg = [dict objectForKey:@"userImg"];
|
||||
_signature = [dict objectForKey:@"signature"];
|
||||
_P2PVerifyCode1 = [dict objectForKey:@"p2PVerifyCode1"];
|
||||
_P2PVerifyCode2 = [dict objectForKey:@"p2PVerifyCode2"];
|
||||
_gwellUserID = [dict objectForKey:@"gwellUserID"];
|
||||
_shopsUserId = [dict objectForKey:@"shopsUserId"];
|
||||
_userType = [dict objectForKey:@"userType"];
|
||||
_neteaseToken = [dict objectForKey:@"neteaseToken"];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// merchantModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/6.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface merchantModel : NSObject
|
||||
//商家 merchant
|
||||
@property(nonatomic,copy)NSString*merchantId;//商家ID
|
||||
@property(nonatomic,copy)NSString*shopName;//商家名称
|
||||
@property(nonatomic,copy)NSString*areaName;
|
||||
@property(nonatomic,copy)NSString* appShow;// 是否显示
|
||||
@property(nonatomic,copy)NSString* cityName;
|
||||
@property(nonatomic,copy)NSString* contactPhone;
|
||||
@property(nonatomic,copy)NSString* endTime ;
|
||||
@property(nonatomic,copy)NSString* isPass;
|
||||
@property(nonatomic,copy)NSString* mainBusiness;
|
||||
@property(nonatomic,copy)NSString* provinceName;
|
||||
@property(nonatomic,copy)NSString* road;
|
||||
@property(nonatomic,copy)NSString* salutation;
|
||||
@property(nonatomic,copy)NSString* startTime;
|
||||
@end
|
||||
@@ -0,0 +1,46 @@
|
||||
//
|
||||
// merchantModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/6.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "merchantModel.h"
|
||||
|
||||
@implementation merchantModel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
[aCoder encodeObject:self forKey:@"merchantId"];
|
||||
[aCoder encodeObject:self forKey:@"appShow"];
|
||||
[aCoder encodeObject:self forKey:@"cityName"];
|
||||
[aCoder encodeObject:self forKey:@"areaName"];
|
||||
[aCoder encodeObject:self forKey:@"contactPhone"];
|
||||
[aCoder encodeObject:self forKey:@"endTime"];
|
||||
[aCoder encodeObject:self forKey:@"isPass"];
|
||||
[aCoder encodeObject:self forKey:@"mainBusiness"];
|
||||
[aCoder encodeObject:self forKey:@"startTime"];
|
||||
[aCoder encodeObject:self forKey:@"provinceName"];
|
||||
[aCoder encodeObject:self forKey:@"road"];
|
||||
[aCoder encodeObject:self forKey:@"salutation"];
|
||||
[aCoder encodeObject:self forKey:@"shopName"];
|
||||
|
||||
}
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]) {
|
||||
self.merchantId=[aDecoder decodeObjectForKey:@"merchantId"];
|
||||
self.appShow=[aDecoder decodeObjectForKey:@"appShow"];
|
||||
self.cityName=[aDecoder decodeObjectForKey:@"cityName"];
|
||||
self.areaName=[aDecoder decodeObjectForKey:@"areaName"];
|
||||
self.contactPhone=[aDecoder decodeObjectForKey:@"contactPhone"];
|
||||
self.endTime=[aDecoder decodeObjectForKey:@"endTime"];
|
||||
self.isPass=[aDecoder decodeObjectForKey:@"isPass"];
|
||||
self.mainBusiness=[aDecoder decodeObjectForKey:@"mainBusiness"];
|
||||
self.startTime=[aDecoder decodeObjectForKey:@"startTime"];
|
||||
self.provinceName=[aDecoder decodeObjectForKey:@"provinceName"];
|
||||
self.road=[aDecoder decodeObjectForKey:@"road"];
|
||||
self.salutation=[aDecoder decodeObjectForKey:@"salutation"];
|
||||
self.shopName=[aDecoder decodeObjectForKey:@"shopName"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// setModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/9/28.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface setModel : NSObject
|
||||
@property(nonatomic,copy)NSString*title;
|
||||
@property(nonatomic,copy)NSString*setDetail;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// setModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/9/28.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "setModel.h"
|
||||
|
||||
@implementation setModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// setRemindWaterModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/3/18.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
//设置或获取 换水提醒成功 返回信息数据模型
|
||||
@interface setRemindWaterModel : NSObject
|
||||
@property(nonatomic,copy)NSString*todayremind;
|
||||
@property(nonatomic,copy)NSString*waterremind;
|
||||
@property(nonatomic,copy)NSString*remindDate;
|
||||
@property(nonatomic) NSInteger remindcycle;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// setRemindWaterModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/3/18.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "setRemindWaterModel.h"
|
||||
|
||||
@implementation setRemindWaterModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// IfishGoodsData.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/4/12.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface IfishGoodsData : NSObject
|
||||
@property(nonatomic,copy)NSString*goodsId;
|
||||
@property(nonatomic,copy)NSString*shopName;
|
||||
@property(nonatomic,copy)NSString*goodsName;
|
||||
@property(nonatomic,copy)NSString*goodsLink;
|
||||
@property(nonatomic,copy)NSString*goodsPicture;
|
||||
@property(nonatomic,copy)NSString*oriPrice;
|
||||
@property(nonatomic,copy)NSString*prePrice;
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// IfishGoodsData.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 17/4/12.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IfishGoodsData.h"
|
||||
|
||||
@implementation IfishGoodsData
|
||||
|
||||
-(instancetype)initWithDict:(NSDictionary *)dict
|
||||
{
|
||||
if (self=[super init]) {
|
||||
_goodsId = [dict objectForKey:@"goodsId"];
|
||||
_shopName = [dict objectForKey:@"shopName"];
|
||||
_goodsName= [dict objectForKey:@"goodsName"];
|
||||
_goodsLink = [dict objectForKey:@"goodsLink"];
|
||||
_goodsPicture = [dict objectForKey:@"goodsPicture"];
|
||||
_oriPrice = [dict objectForKey:@"oriPrice"];
|
||||
_prePrice = [dict objectForKey:@"prePrice"];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// ShopModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/24.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface ShopModel : NSObject
|
||||
@property(nonatomic,copy)NSString*merchantId;
|
||||
@property(nonatomic,copy)NSString*shopName;
|
||||
@property(nonatomic,copy)NSString*mainBusiness;
|
||||
@property(nonatomic,copy)NSString*startTime;
|
||||
@property(nonatomic,copy)NSString*endTime;
|
||||
@property(nonatomic,copy)NSString*appShow;
|
||||
@property(nonatomic,copy)NSString*salutation;
|
||||
@property(nonatomic,copy)NSString*contactPhone;
|
||||
@property(nonatomic,copy)NSString*provinceName;
|
||||
@property(nonatomic,copy)NSString*cityName;
|
||||
@property(nonatomic,copy)NSString*areaName;
|
||||
@property(nonatomic,copy)NSString*road;
|
||||
@property(nonatomic,copy)NSString*isPass;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ShopModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/24.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ShopModel.h"
|
||||
|
||||
@implementation ShopModel
|
||||
|
||||
@end
|
||||
Vendored
BIN
Binary file not shown.
@@ -0,0 +1,37 @@
|
||||
//
|
||||
// baseModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
//建议指令用结构体 用字节封装 沿用 老版本不想改了
|
||||
//类似
|
||||
// typedef struct sSDCardInfo{
|
||||
// BYTE bSDCardID;
|
||||
// UINT64 u64SDTotalSpace;
|
||||
// UINT64 u64SDCardFreeSpace;
|
||||
// }PACKED sSDCardInfo;
|
||||
//详情 参见本项目 mesg.h 文件
|
||||
|
||||
|
||||
// 数据包头
|
||||
#import "DeviceModel.h"
|
||||
@interface baseModel : NSObject
|
||||
|
||||
@property(nonatomic,copy)NSString*messagetype;
|
||||
@property(nonatomic,copy)NSString*functionCode;//功能码
|
||||
@property(nonatomic,copy)NSString*sendmacId;
|
||||
@property(nonatomic,copy)NSString*resavemacId;
|
||||
@property(nonatomic,copy)NSString*massagelegth;
|
||||
@property(nonatomic)BOOL isSend;
|
||||
|
||||
//@property(nonatomic,strong) DeviceModel *devicemodel;
|
||||
|
||||
//@property(nonatomic)Byte*byte;
|
||||
//@property(nonatomic)Byte version;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,68 @@
|
||||
//
|
||||
// baseModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
|
||||
extern NSIndexPath*selectIndexPath;
|
||||
|
||||
extern BOOL collectionViewselect;
|
||||
|
||||
@implementation baseModel
|
||||
-(instancetype)init{
|
||||
self=[super init];
|
||||
if (self) {
|
||||
// NSArray*deviceArry=[[DataCenter defaultDtacenter]valueForKey:@"deviceInfo"];
|
||||
// if ([deviceArry count]!=0) {
|
||||
// if (collectionViewselect==YES) {//防删除选中状态下奔溃 还用于切换设备
|
||||
// DeviceModel*devicemodel=[deviceArry objectAtIndex:selectIndexPath.row];
|
||||
// self.sendmacId=devicemodel.macAddress;
|
||||
// self.resavemacId=devicemodel.macAddress;
|
||||
// }else{// 下拉菜单没有点击选中状态时
|
||||
//
|
||||
// /**
|
||||
// *app 启动程序进入默认选中 退出程序所选中设备
|
||||
// */
|
||||
// DeviceModel*devicemodel=[[DeviceModel alloc]init];
|
||||
// NSUserDefaults*userdefult=[NSUserDefaults standardUserDefaults];
|
||||
//
|
||||
// NSInteger indexPath=[userdefult integerForKey:@"lastIndex"];
|
||||
//
|
||||
// if (!indexPath) {
|
||||
// devicemodel=[deviceArry objectAtIndex:0];//第一次启动 而且没有选中状态 默认选择第一个
|
||||
//
|
||||
// }else{//启动过app 并且之前有选中绑定设备 再次启动默认显示之前所选中设备
|
||||
// devicemodel=[deviceArry objectAtIndex:indexPath];
|
||||
// }
|
||||
// self.sendmacId=devicemodel.macAddress;
|
||||
// self.resavemacId=devicemodel.macAddress;
|
||||
// }
|
||||
// }
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
}
|
||||
|
||||
self.massagelegth=@"0f";//包长
|
||||
return self;
|
||||
|
||||
}
|
||||
- (NSString *)description
|
||||
{
|
||||
|
||||
self.messagetype=@"00";
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@",self.messagetype,self.functionCode, self.sendmacId,self.resavemacId,self.massagelegth];
|
||||
|
||||
}
|
||||
//-(void)setmacIdWith:(DeviceModel *)devicemodel{
|
||||
//
|
||||
// self.sendmacId=devicemodel.macAddress;
|
||||
// self.resavemacId=devicemodel.macAddress;
|
||||
//}
|
||||
@end
|
||||
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// BackmassegeModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
//亮灯一泵返回状态信息99字节三控 陈工
|
||||
@interface BackmassegeModel : baseModel
|
||||
@property(nonatomic)BOOL ofOn;
|
||||
@property(nonatomic)BOOL manual;
|
||||
@property(nonatomic,copy)NSString*yunxingmoshi;
|
||||
@property(nonatomic,copy)NSString*light1;
|
||||
@property(nonatomic,copy)NSString*light2;
|
||||
@property(nonatomic,copy)NSString*pump;
|
||||
@property(nonatomic,copy)NSString*timer1;
|
||||
@property(nonatomic,copy)NSString*timer2;
|
||||
@property(nonatomic,copy)NSString*timer3;
|
||||
@property(nonatomic,copy)NSString*timer4;
|
||||
@property(nonatomic,copy)NSString*timer5;
|
||||
@property(nonatomic,copy)NSString*timer6;
|
||||
@property(nonatomic,copy)NSString*timer7;
|
||||
@property(nonatomic,copy)NSString*timer8;
|
||||
@property(nonatomic,copy)NSString*timer9;
|
||||
@property(nonatomic,copy)NSString*timer10;
|
||||
@property(nonatomic,copy)NSString*wendu;
|
||||
@property(nonatomic,copy)NSString*Ph;
|
||||
// 湿度两字节 已废弃
|
||||
@property(nonatomic,copy)NSString*shidu;
|
||||
//背光灯亮度
|
||||
@property(nonatomic,copy)NSString*brightness;
|
||||
//柜灯开关
|
||||
@property(nonatomic,copy)NSString*tankLight;
|
||||
|
||||
@property(nonatomic,copy)NSString*baojingSwitch;
|
||||
@property(nonatomic,copy)NSString*miniTp;
|
||||
@property(nonatomic,copy)NSString*maxTp;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,67 @@
|
||||
//
|
||||
// BackmassegeModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "BackmassegeModel.h"
|
||||
|
||||
@implementation BackmassegeModel
|
||||
// 归档时调用 三控
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
[aCoder encodeObject:self forKey:@"yunxingmoshi"];
|
||||
[aCoder encodeObject:self forKey:@"light1"];
|
||||
[aCoder encodeObject:self forKey:@"light2"];
|
||||
[aCoder encodeObject:self forKey:@"pump"];
|
||||
[aCoder encodeObject:self forKey:@"timer1"];
|
||||
[aCoder encodeObject:self forKey:@"timer2"];
|
||||
[aCoder encodeObject:self forKey:@"timer3"];
|
||||
[aCoder encodeObject:self forKey:@"timer4"];
|
||||
[aCoder encodeObject:self forKey:@"timer5"];
|
||||
[aCoder encodeObject:self forKey:@"timer6"];
|
||||
[aCoder encodeObject:self forKey:@"timer7"];
|
||||
[aCoder encodeObject:self forKey:@"timer8"];
|
||||
[aCoder encodeObject:self forKey:@"timer9"];
|
||||
[aCoder encodeObject:self forKey:@"timer10"];
|
||||
[aCoder encodeObject:self forKey:@"wendu"];
|
||||
[aCoder encodeObject:self forKey:@"brightness"];
|
||||
[aCoder encodeObject:self forKey:@"tankLight"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"Ph"];
|
||||
[aCoder encodeObject:self forKey:@"baojingSwitch"];
|
||||
[aCoder encodeObject:self forKey:@"miniTp"];
|
||||
[aCoder encodeObject:self forKey:@"maxTp"];
|
||||
}
|
||||
//解挡时调用
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]) {
|
||||
self.yunxingmoshi=[aDecoder decodeObjectForKey:@"yunxingmoshi"];
|
||||
self.light1=[aDecoder decodeObjectForKey:@"light1"];
|
||||
self.light2=[aDecoder decodeObjectForKey:@"light2"];
|
||||
self.pump=[aDecoder decodeObjectForKey:@"pump"];
|
||||
self.timer1=[aDecoder decodeObjectForKey:@"timer1"];
|
||||
self.timer2=[aDecoder decodeObjectForKey:@"timer2"];
|
||||
self.timer3=[aDecoder decodeObjectForKey:@"timer3"];
|
||||
self.timer4=[aDecoder decodeObjectForKey:@"timer4"];
|
||||
self.timer5=[aDecoder decodeObjectForKey:@"timer5"];
|
||||
self.timer6=[aDecoder decodeObjectForKey:@"timer6"];
|
||||
self.timer7=[aDecoder decodeObjectForKey:@"timer7"];
|
||||
self.timer8=[aDecoder decodeObjectForKey:@"timer8"];
|
||||
self.timer9=[aDecoder decodeObjectForKey:@"timer9"];
|
||||
self.timer10=[aDecoder decodeObjectForKey:@"timer10"];
|
||||
self.wendu=[aDecoder decodeObjectForKey:@"wendu"];
|
||||
|
||||
self.brightness=[aDecoder decodeObjectForKey:@"brightness"];
|
||||
self.tankLight=[aDecoder decodeObjectForKey:@"tankLight"];
|
||||
|
||||
self.Ph=[aDecoder decodeObjectForKey:@"Ph"];
|
||||
self.baojingSwitch=[aDecoder decodeObjectForKey:@"baojingSwitch"];
|
||||
self.miniTp=[aDecoder decodeObjectForKey:@"miniTp"];
|
||||
self.maxTp=[aDecoder decodeObjectForKey:@"maxTp"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@end
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// brightnessModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/3/15.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
|
||||
@interface BrightnessModel : baseModel
|
||||
@property(nonatomic,copy)NSString*liangdu;
|
||||
@property(nonatomic,copy)NSString*crc16Code;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// brightnessModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/3/15.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "BrightnessModel.h"
|
||||
//背光亮度
|
||||
@implementation BrightnessModel
|
||||
-(NSString*)description{
|
||||
self.massagelegth=@"12";
|
||||
self.messagetype=@"00";
|
||||
self.functionCode=@"0c";
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@",self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth];
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// DeviceOnlineModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 配置设备入网指令
|
||||
@interface DeviceOnlineModel : baseModel
|
||||
@property(nonatomic,copy)NSString*wifiNumber;
|
||||
@property(nonatomic,copy)NSString*wifiPassword;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// DeviceOnlineModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "DeviceOnlineModel.h"
|
||||
//设备入网指令
|
||||
|
||||
@implementation DeviceOnlineModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// GuidengKaiGuanModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/3/15.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
|
||||
@interface GuidengKaiGuanModel : baseModel
|
||||
// 开关状态
|
||||
@property(nonatomic,copy)NSString*onOff;
|
||||
//crc16 验证码
|
||||
@property(nonatomic,copy)NSString*crc16Str;
|
||||
@end
|
||||
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// GuidengKaiGuanModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/3/15.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "GuidengKaiGuanModel.h"
|
||||
//柜光灯开关
|
||||
@implementation GuidengKaiGuanModel
|
||||
-(NSString*)description{
|
||||
self.messagetype=@"00";
|
||||
self.functionCode=@"0d";//13
|
||||
|
||||
self.crc16Str=@"0000";
|
||||
self.massagelegth=@"12";
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@", self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth];
|
||||
|
||||
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ServerBackDeviceLogInModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
|
||||
@interface ServerBackDeviceLogInModel : baseModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ServerBackDeviceLogInModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ServerBackDeviceLogInModel.h"
|
||||
|
||||
@implementation ServerBackDeviceLogInModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// SetSelectorTime.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 设置定时器 时间
|
||||
|
||||
@interface SetSelectorTime : baseModel
|
||||
@property(nonatomic,copy)NSString*selectorNumber;
|
||||
@property(nonatomic,copy)NSString*selectorTime;
|
||||
|
||||
@property(nonatomic,copy)NSString*timer1;
|
||||
@property(nonatomic,copy)NSString*timer2;
|
||||
@property(nonatomic,copy)NSString*timer3;
|
||||
@property(nonatomic,copy)NSString*timer4;
|
||||
@property(nonatomic,copy)NSString*timer5;
|
||||
@property(nonatomic,copy)NSString*timer6;
|
||||
@property(nonatomic,copy)NSString*timer7;
|
||||
@property(nonatomic,copy)NSString*timer8;
|
||||
@property(nonatomic,copy)NSString*timer9;
|
||||
|
||||
@property(nonatomic,copy)NSString*crc16str;
|
||||
@property(nonatomic,copy)NSString*isOn;//时间定时器开关状态
|
||||
@end
|
||||
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// SetSelectorTime.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "SetSelectorTime.h"
|
||||
|
||||
@implementation SetSelectorTime
|
||||
- (NSString *)description
|
||||
{
|
||||
self.messagetype=@"00";
|
||||
self.massagelegth=@"16";
|
||||
self.functionCode=@"04";
|
||||
// self.selectorNumber=@"01";//1-9 定时器编号
|
||||
// self.selectorTime=@"";
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@",self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth];
|
||||
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,40 @@
|
||||
//
|
||||
// ThreeControlBackbackmsgModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/2/26.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
//77 字节 张工
|
||||
@interface ThreeControlBackbackmsgModel : baseModel
|
||||
@property(nonatomic)BOOL ofOn;
|
||||
@property(nonatomic)BOOL manual;
|
||||
@property(nonatomic,copy)NSString*yunxingmoshi;
|
||||
@property(nonatomic,copy)NSString*light1;
|
||||
@property(nonatomic,copy)NSString*light2;
|
||||
@property(nonatomic,copy)NSString*pump;
|
||||
@property(nonatomic,copy)NSString*timer1;
|
||||
@property(nonatomic,copy)NSString*timer2;
|
||||
@property(nonatomic,copy)NSString*timer3;
|
||||
@property(nonatomic,copy)NSString*timer4;
|
||||
@property(nonatomic,copy)NSString*timer5;
|
||||
@property(nonatomic,copy)NSString*timer6;
|
||||
@property(nonatomic,copy)NSString*timer7;
|
||||
@property(nonatomic,copy)NSString*timer8;
|
||||
@property(nonatomic,copy)NSString*timer9;
|
||||
@property(nonatomic,copy)NSString*timer10;
|
||||
@property(nonatomic,copy)NSString*wendu;
|
||||
@property(nonatomic,copy)NSString*Ph;
|
||||
|
||||
@property(nonatomic,copy)NSString*shidu;
|
||||
//背光灯亮度
|
||||
@property(nonatomic,copy)NSString*brightness;
|
||||
//柜灯开关
|
||||
@property(nonatomic,copy)NSString*tankLight;
|
||||
|
||||
@property(nonatomic,copy)NSString*baojingSwitch;
|
||||
@property(nonatomic,copy)NSString*miniTp;
|
||||
@property(nonatomic,copy)NSString*maxTp;
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// ThreeControlBackbackmsgModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/2/26.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ThreeControlBackbackmsgModel.h"
|
||||
|
||||
@implementation ThreeControlBackbackmsgModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,16 @@
|
||||
//
|
||||
// TimerSateModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/25.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
//开关定时器指令
|
||||
#import "baseModel.h"
|
||||
@interface TimerSateModel :baseModel
|
||||
@property(nonatomic,copy)NSString*timerNumber;
|
||||
@property(nonatomic,copy)NSString*timerState;// 开01;关00
|
||||
@property(nonatomic,copy)NSString*crc16String;
|
||||
@end
|
||||
@@ -0,0 +1,19 @@
|
||||
//
|
||||
// TimerSateModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/11/25.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TimerSateModel.h"
|
||||
|
||||
@implementation TimerSateModel
|
||||
- (NSString *)description
|
||||
{
|
||||
self.messagetype=@"00";
|
||||
self.functionCode=@"0a";//10
|
||||
self.massagelegth=@"13";
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@",self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth];
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,36 @@
|
||||
//
|
||||
// TwoControlBackmsgmodel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/2/18.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "baseModel.h"
|
||||
//两控(一灯一泵)返回信息模型
|
||||
@interface TwoControlBackmsgmodel : baseModel
|
||||
@property(nonatomic)BOOL ofOn;
|
||||
@property(nonatomic)BOOL manual;
|
||||
@property(nonatomic,copy)NSString*yunxingmoshi;
|
||||
@property(nonatomic,copy)NSString*light;
|
||||
@property(nonatomic,copy)NSString*pump;
|
||||
@property(nonatomic,copy)NSString*timer1;
|
||||
@property(nonatomic,copy)NSString*timer2;
|
||||
@property(nonatomic,copy)NSString*timer3;
|
||||
@property(nonatomic,copy)NSString*timer4;
|
||||
|
||||
@property(nonatomic,copy)NSString*wendu;
|
||||
@property(nonatomic,copy)NSString*Ph;
|
||||
|
||||
@property(nonatomic,copy)NSString*shidu;
|
||||
//背光灯亮度
|
||||
@property(nonatomic,copy)NSString*brightness;
|
||||
//柜灯开关
|
||||
@property(nonatomic,copy)NSString*tankLight;
|
||||
|
||||
@property(nonatomic,copy)NSString*baojingSwitch;
|
||||
@property(nonatomic,copy)NSString*miniTp;
|
||||
@property(nonatomic,copy)NSString*maxTp;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,63 @@
|
||||
//
|
||||
// TwoControlBackmsgmodel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/2/18.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TwoControlBackmsgmodel.h"
|
||||
|
||||
@implementation TwoControlBackmsgmodel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
[aCoder encodeObject:self forKey:@"yunxingmoshi"];
|
||||
[aCoder encodeObject:self forKey:@"light1"];
|
||||
[aCoder encodeObject:self forKey:@"light2"];
|
||||
[aCoder encodeObject:self forKey:@"pump"];
|
||||
[aCoder encodeObject:self forKey:@"timer1"];
|
||||
[aCoder encodeObject:self forKey:@"timer2"];
|
||||
[aCoder encodeObject:self forKey:@"timer3"];
|
||||
[aCoder encodeObject:self forKey:@"timer4"];
|
||||
[aCoder encodeObject:self forKey:@"timer5"];
|
||||
[aCoder encodeObject:self forKey:@"timer6"];
|
||||
[aCoder encodeObject:self forKey:@"timer7"];
|
||||
[aCoder encodeObject:self forKey:@"timer8"];
|
||||
[aCoder encodeObject:self forKey:@"timer9"];
|
||||
[aCoder encodeObject:self forKey:@"timer10"];
|
||||
[aCoder encodeObject:self forKey:@"wendu"];
|
||||
[aCoder encodeObject:self forKey:@"Ph"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"brightness"];
|
||||
[aCoder encodeObject:self forKey:@"tankLight"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"baojingSwitch"];
|
||||
[aCoder encodeObject:self forKey:@"miniTp"];
|
||||
[aCoder encodeObject:self forKey:@"maxTp"];
|
||||
}
|
||||
//解挡时调用
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]) {
|
||||
self.yunxingmoshi=[aDecoder decodeObjectForKey:@"yunxingmoshi"];
|
||||
self.light=[aDecoder decodeObjectForKey:@"light"];
|
||||
|
||||
self.pump=[aDecoder decodeObjectForKey:@"pump"];
|
||||
self.timer1=[aDecoder decodeObjectForKey:@"timer1"];
|
||||
self.timer2=[aDecoder decodeObjectForKey:@"timer2"];
|
||||
self.timer3=[aDecoder decodeObjectForKey:@"timer3"];
|
||||
self.timer4=[aDecoder decodeObjectForKey:@"timer4"];
|
||||
|
||||
self.wendu=[aDecoder decodeObjectForKey:@"wendu"];
|
||||
self.Ph=[aDecoder decodeObjectForKey:@"Ph"];
|
||||
|
||||
self.brightness=[aDecoder decodeObjectForKey:@"brightness"];
|
||||
self.tankLight=[aDecoder decodeObjectForKey:@"tankLight"];
|
||||
|
||||
|
||||
self.baojingSwitch=[aDecoder decodeObjectForKey:@"baojingSwitch"];
|
||||
self.miniTp=[aDecoder decodeObjectForKey:@"miniTp"];
|
||||
self.maxTp=[aDecoder decodeObjectForKey:@"maxTp"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// ZeroControlBackmsgModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/2/24.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 无控设备返回信息 模型 返回28 字节
|
||||
@interface ZeroControlBackmsgModel : baseModel
|
||||
//温度
|
||||
@property(nonatomic,copy)NSString*wendu;
|
||||
//PH值
|
||||
@property(nonatomic,copy)NSString*Ph;
|
||||
// 湿度
|
||||
@property(nonatomic,copy)NSString*shidu;
|
||||
|
||||
//背光灯亮度
|
||||
@property(nonatomic,copy)NSString*brightness;
|
||||
//柜灯开关
|
||||
@property(nonatomic,copy)NSString*tankLight;
|
||||
|
||||
// 报警开关
|
||||
@property(nonatomic,copy)NSString*baojingSwitch;
|
||||
//最低温
|
||||
@property(nonatomic,copy)NSString*miniTp;
|
||||
// 最高温
|
||||
@property(nonatomic,copy)NSString*maxTp;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,41 @@
|
||||
//
|
||||
// ZeroControlBackmsgModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 16/2/24.
|
||||
// Copyright © 2016年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "ZeroControlBackmsgModel.h"
|
||||
|
||||
@implementation ZeroControlBackmsgModel
|
||||
-(void)encodeWithCoder:(NSCoder*)aCoder{
|
||||
|
||||
[aCoder encodeObject:self forKey:@"wendu"];
|
||||
[aCoder encodeObject:self forKey:@"Ph"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"brightness"];
|
||||
[aCoder encodeObject:self forKey:@"tankLight"];
|
||||
|
||||
[aCoder encodeObject:self forKey:@"baojingSwitch"];
|
||||
[aCoder encodeObject:self forKey:@"miniTp"];
|
||||
[aCoder encodeObject:self forKey:@"maxTp"];
|
||||
}
|
||||
//解挡时调用
|
||||
-(id)initWithCoder:(NSCoder*)aDecoder{
|
||||
if (self=[super init]) {
|
||||
|
||||
self.wendu=[aDecoder decodeObjectForKey:@"wendu"];
|
||||
self.Ph=[aDecoder decodeObjectForKey:@"Ph"];
|
||||
|
||||
self.brightness=[aDecoder decodeObjectForKey:@"brightness"];
|
||||
self.tankLight=[aDecoder decodeObjectForKey:@"tankLight"];
|
||||
|
||||
self.baojingSwitch=[aDecoder decodeObjectForKey:@"baojingSwitch"];
|
||||
self.miniTp=[aDecoder decodeObjectForKey:@"miniTp"];
|
||||
self.maxTp=[aDecoder decodeObjectForKey:@"maxTp"];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// appLogin.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/13.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
|
||||
@interface appLogin : baseModel
|
||||
@property(nonatomic,copy)NSString*dateString;
|
||||
@property(nonatomic,copy)NSString*crc16String;
|
||||
@end
|
||||
@@ -0,0 +1,55 @@
|
||||
//
|
||||
// appLogin.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/13.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "appLogin.h"
|
||||
#include "dataContorl.h"
|
||||
@implementation appLogin
|
||||
- (NSString *)description
|
||||
{
|
||||
|
||||
NSDate * senddate=[NSDate date];
|
||||
NSCalendar*cal=[NSCalendar currentCalendar];
|
||||
NSUInteger unitFlages=NSDayCalendarUnit|NSMonthCalendarUnit|NSYearCalendarUnit;
|
||||
NSDateComponents*conpnent=[cal components:
|
||||
unitFlages fromDate:senddate];
|
||||
NSInteger year=[conpnent year];
|
||||
NSInteger month=[conpnent month];
|
||||
NSInteger day=[conpnent day];
|
||||
// 小于十时 day 或小于十月 前加零
|
||||
if (day<10) {
|
||||
if (month<10) {
|
||||
self.dateString=[NSString stringWithFormat:@"%ld0%ld0%ld",(long)year,(long)month,(long)day];
|
||||
}else{
|
||||
self.dateString=[NSString stringWithFormat:@"%ld%ld0%ld",(long)year,(long)month,(long)day];
|
||||
}
|
||||
|
||||
}else{
|
||||
// 当 day 大于等于十时
|
||||
if (month<10) {
|
||||
self.dateString=[NSString stringWithFormat:@"%ld0%ld%ld",(long)year,(long)month,(long)day];
|
||||
}else{
|
||||
self.dateString=[NSString stringWithFormat:@"%ld%ld%ld",(long)year,(long)month,(long)day];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 转十六进制
|
||||
NSString*hextring=[dataContorl hexStringFromString:self.dateString];
|
||||
|
||||
|
||||
|
||||
self.messagetype=@"00";
|
||||
self.functionCode=@"00";
|
||||
self.crc16String=@"0000";// CRC16校验码
|
||||
self.massagelegth=@"19";
|
||||
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@%@%@",self.messagetype,self.functionCode, self.sendmacId,self.resavemacId,self.massagelegth,hextring,self.crc16String];
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// backAppLoginModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/13.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
|
||||
@interface backAppLoginModel : baseModel
|
||||
@property(nonatomic,copy)NSString* reuslt;
|
||||
@end
|
||||
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// backAppLoginModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/13.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "backAppLoginModel.h"
|
||||
|
||||
@implementation backAppLoginModel
|
||||
-(instancetype)init{
|
||||
|
||||
self=[super init];
|
||||
if (self) {
|
||||
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,17 @@
|
||||
//
|
||||
// deviceLoginModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 设备登录服务器指令
|
||||
@interface deviceLoginModel : baseModel
|
||||
@property(nonatomic,copy)NSString*changshang;
|
||||
@property(nonatomic,copy)NSString*yingjianxinghao;
|
||||
@property(nonatomic,copy)NSString*banben;
|
||||
@property(nonatomic,copy)NSString*dengluIP;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// deviceLoginModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "deviceLoginModel.h"
|
||||
|
||||
@implementation deviceLoginModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// heartModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
|
||||
@interface heartModel : baseModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// heartModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "heartModel.h"
|
||||
//心跳包
|
||||
@implementation heartModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,14 @@
|
||||
//
|
||||
// huifushebeiruwnagModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 回复设备入网
|
||||
@interface huifushebeiruwnagModel : baseModel
|
||||
@property(nonatomic,copy)NSString*resault;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,13 @@
|
||||
//
|
||||
// huifushebeiruwnagModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "huifushebeiruwnagModel.h"
|
||||
|
||||
@implementation huifushebeiruwnagModel
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// manulswitchMSModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 手动模式下 开关指令
|
||||
@interface manulswitchMSModel : baseModel
|
||||
|
||||
@property(nonatomic,copy)NSString*lightNumber;
|
||||
@property(nonatomic,copy)NSString*switchBtn;
|
||||
@property(nonatomic,copy)NSString*crc16Str;
|
||||
@property(nonatomic)BOOL isOn;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// manulswitchMSModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "manulswitchMSModel.h"
|
||||
|
||||
@implementation manulswitchMSModel
|
||||
- (NSString *)description
|
||||
{
|
||||
self.messagetype=@"00";
|
||||
self.massagelegth=@"13";
|
||||
self.functionCode=@"03";
|
||||
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@", self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth];
|
||||
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// searchDeviceModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 查询设备信息
|
||||
@interface searchDeviceModel : baseModel
|
||||
//全填充为00
|
||||
@property(nonatomic,copy)NSString*crc16String;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// searchDeviceModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "searchDeviceModel.h"
|
||||
|
||||
@implementation searchDeviceModel
|
||||
- (NSString *)description
|
||||
{
|
||||
// if (self.isSend==NO) {
|
||||
// self.messagetype=@"01";
|
||||
// }else if(self.isSend==YES){
|
||||
self.messagetype=@"00";
|
||||
// }
|
||||
self.massagelegth=@"11";
|
||||
self.functionCode=@"06";
|
||||
self.crc16String=@"0000";
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@%@",self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth,self.crc16String];
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// setWaringTpModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 设置报警温度指令
|
||||
@interface setWaringTpModel : baseModel
|
||||
@property(nonatomic) BOOL IsOn;
|
||||
@property(nonatomic,copy)NSString*closeOn;
|
||||
@property(nonatomic,copy)NSString*catgry;
|
||||
@property(nonatomic)BOOL isHeigh;
|
||||
@property(nonatomic,copy)NSString*miniwaterTp;//最低报警水温
|
||||
@property(nonatomic,copy)NSString*kaiguan;//开关
|
||||
//最高水温
|
||||
@property(nonatomic,copy)NSString*maxwaterTp;
|
||||
//填充0
|
||||
|
||||
@property(nonatomic,copy)NSString*crc16Ing;// 校验码
|
||||
@end
|
||||
@@ -0,0 +1,23 @@
|
||||
|
||||
//
|
||||
// setWaringTpModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "setWaringTpModel.h"
|
||||
|
||||
@implementation setWaringTpModel
|
||||
- (NSString *)description
|
||||
{
|
||||
self.massagelegth=@"16";
|
||||
self.messagetype=@"00";
|
||||
//self.kaiguan=@"02";// 01 开 00 关 02设置温度
|
||||
self.functionCode=@"05";
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@", self.messagetype,self.functionCode,self.sendmacId,self.resavemacId
|
||||
,self.massagelegth];
|
||||
|
||||
}
|
||||
@end
|
||||
@@ -0,0 +1,15 @@
|
||||
//
|
||||
// workTypeModel.h
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "baseModel.h"
|
||||
// 切换工作模式指令
|
||||
@interface workTypeModel : baseModel
|
||||
@property(nonatomic,copy)NSString*workstyle;
|
||||
@property(nonatomic,copy)NSString*crc16String;
|
||||
@property(nonatomic)BOOL manual;
|
||||
@end
|
||||
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// workTypeModel.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 15/10/12.
|
||||
// Copyright © 2015年 imac. All rights reserved.
|
||||
//
|
||||
|
||||
#import "workTypeModel.h"
|
||||
|
||||
@implementation workTypeModel
|
||||
- (NSString *)description
|
||||
{
|
||||
self.messagetype=@"00";
|
||||
self.massagelegth=@"12";
|
||||
self.functionCode=@"02";
|
||||
// self.workstyle=@"01";//切换自动模式根据定时器设定的时间段响应灯的开和关 00手动模式
|
||||
return [NSString stringWithFormat:@"%@%@%@%@%@",self.messagetype,self.functionCode,self.sendmacId,self.resavemacId,self.massagelegth];
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user