163 lines
5.1 KiB
Objective-C
163 lines
5.1 KiB
Objective-C
//
|
|
// MonitorBootmView.h
|
|
// Ifish
|
|
//
|
|
// Created by imac on 16/6/28.
|
|
// Copyright © 2016年 lianxiang. All rights reserved.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
//竖屏水族箱 底部view
|
|
#import "DeviceModel.h"
|
|
#import "Xuanduo2Model.h"
|
|
#import "Socketsingleton.h"
|
|
#import "BootomViewSoketBackMasgConreol.h"
|
|
#import "DeviceCommunicateDataUnity.h"
|
|
#import "ZeroControlBackmsgModel.h"
|
|
#import "BackmassegeModel.h"
|
|
#import "TwoControlBackmsgmodel.h"
|
|
#import "XutoBackMsgModel.h"
|
|
#import "KeLiAiBackMassage.h"
|
|
#import "SongNuoBackMassage.h"
|
|
#import "XuToSoketBackMsgDataUnity.h"
|
|
#import "FourControlbackMassge.h"
|
|
#import "FourControlDataUnity.h"
|
|
#import "IfishCameraModel.h"
|
|
|
|
#import "SongNuoBackMsgDataUnity.h"
|
|
#import "KeLiAiBackmassageDataUnity.h"
|
|
#import "RuSunProtocol.h"
|
|
#import "RuSunBackMessageUtils.h"
|
|
#import "SongNuoBDProtocol.h"
|
|
#import "RunSun84Protocol.h"
|
|
#import "RuSun84BackMsgUtils.h"
|
|
#import "RuiMeiProtocolModel.h"
|
|
#import "RuiMeiBackMsgUtils.h"
|
|
|
|
@protocol MonitorBottomCollcetionSelectDelegate <NSObject>
|
|
|
|
@optional
|
|
|
|
-(void)didselectCollectionIex:(NSIndexPath *)indexPath
|
|
|
|
withData:(DeviceModel *)dmodel
|
|
addMassglength:(NSUInteger)bufferlenth;
|
|
|
|
|
|
-(void)setTimeVCReloadDatawithTimerArr:(NSArray*) timerArr
|
|
withData:(DeviceModel *)dmodel
|
|
addMassglength:(NSUInteger) bufferlenth;
|
|
|
|
// 新绚多设置页面
|
|
-(void)didselectXuanduo2SetttngWithData:(DeviceModel *)dmodel
|
|
andBackModel:(Xuanduo2Model *)backmodel;
|
|
|
|
|
|
-(void)cameraBindDeviceSuccess;
|
|
|
|
|
|
-(void)noCanuserDevicePush;
|
|
|
|
//对应炫多点击水泵和加热泵
|
|
|
|
-(void)selectXuToAtIndex:(NSIndexPath*)index withbackModel:(XutoBackMsgModel *)backmodel ;
|
|
|
|
-(void)selectXuanduo2Index:(NSIndexPath *)index withBackModel:(Xuanduo2Model *)backModel;
|
|
|
|
//对应松诺加热棒
|
|
|
|
-(void)slectSongNuoInde:(NSIndexPath*)index withBackModel:(SongNuoBackMassage *)backModel;
|
|
|
|
//对应 可丽爱加热棒
|
|
|
|
-(void)selctKeLiAiIndex:(NSIndexPath*)index withBackModel:(KeLiAiBackMassage *)backModel;
|
|
|
|
//睿芯 三控温控 加热棒
|
|
-(void)selectRuSunIndex:(NSIndexPath*)index withbackModle:(RuSunProtocol *)backModel;
|
|
-(void)selectRuSun84Index:(NSIndexPath*)index withbackModle:(RunSun84Protocol *)backModel;
|
|
|
|
//瑞美
|
|
-(void)selectRuiMeiIndex:(NSIndexPath*)index withbackModle:(RunSun84Protocol *)backModel;
|
|
|
|
//松诺 BD
|
|
|
|
-(void)selectSongNuoBDIndex:(NSIndexPath *)index withBackModel:(SongNuoBDProtocol *)backModel;
|
|
|
|
//摄像头已不存在
|
|
-(void)cameraIsNotExit;
|
|
|
|
@end
|
|
|
|
|
|
@interface MonitorBootmView : UIView<
|
|
UITableViewDelegate,
|
|
UITableViewDataSource,
|
|
UICollectionViewDelegate,
|
|
UICollectionViewDataSource,
|
|
UICollectionViewDelegateFlowLayout,
|
|
IfishCommuniteDelegate>
|
|
|
|
{
|
|
CGRect viewFrame;
|
|
|
|
CGFloat frameHeight; //fram 高度
|
|
|
|
NSIndexPath *tapIndex;
|
|
}
|
|
|
|
@property(nonatomic,strong) UITableView *tableView;
|
|
//水族箱设备数组
|
|
@property(nonatomic,strong) NSMutableArray *ifishDeviceArr;
|
|
//摄像头是否已与摄像头建立关系
|
|
@property(nonatomic) BOOL isBindIfishDevice;
|
|
|
|
@property (nonatomic,strong) UICollectionView *collectionView;
|
|
|
|
@property (nonatomic,strong) UICollectionViewFlowLayout *flowLayout;
|
|
|
|
@property (nonatomic, assign) id<MonitorBottomCollcetionSelectDelegate>
|
|
MonitorBottomDelegate;
|
|
|
|
@property(nonatomic,strong) DeviceModel *device;
|
|
|
|
//未开启按钮时图片
|
|
@property(nonatomic,strong) NSArray *btnImgArr;
|
|
//开启按钮图片
|
|
@property(nonatomic,strong) NSArray *btnOnImgArr;
|
|
|
|
@property(nonatomic,strong) NSArray *btnNameArr;
|
|
|
|
|
|
@property(nonatomic,copy) NSString *cameraId;
|
|
|
|
@property(nonatomic,strong) NSString *temperature;
|
|
|
|
@property(nonatomic,strong) BackmassegeModel *backModel1;
|
|
|
|
@property(nonatomic,strong) ZeroControlBackmsgModel *zeroBckModel;
|
|
|
|
@property(nonatomic,strong) TwoControlBackmsgmodel *twoControlBack;
|
|
|
|
@property(nonatomic,strong) XutoBackMsgModel *xutoback;
|
|
|
|
@property(nonatomic,strong) KeLiAiBackMassage *keliaiBack;
|
|
|
|
@property(nonatomic,strong) SongNuoBackMassage *songNuoBackMassage;
|
|
|
|
@property(nonatomic) NSInteger dataLength;
|
|
|
|
@property(nonatomic,strong) FourControlbackMassge *fourControlbackmodel;
|
|
|
|
@property(nonatomic,strong) KeLiAiBackMassage *keLiAiBackmodel;
|
|
|
|
@property(nonatomic,strong) RuSunProtocol *ruSunBack;
|
|
@property(nonatomic,strong) RunSun84Protocol *ruSun84Back;
|
|
@property (nonatomic, strong) RuiMeiProtocolModel *ruiMeiBack;
|
|
@property(nonatomic,strong) SongNuoBDProtocol *songNuoBDBack;
|
|
@property(nonatomic,strong) Xuanduo2Model *xuanduoBack;
|
|
|
|
|
|
-(void)setTabViewWithFrame:(CGRect)frame;
|
|
|
|
@end
|