127 lines
2.9 KiB
Objective-C
127 lines
2.9 KiB
Objective-C
//
|
||
// CenterViewController.h
|
||
// Ifish
|
||
//
|
||
// Created by imac on 15/9/27.
|
||
// Copyright © 2015年 imac. All rights reserved.
|
||
//
|
||
|
||
#import <UIKit/UIKit.h>
|
||
#import "ICSDrawerController.h"
|
||
#import "Socketsingleton.h"
|
||
#import "MyHud.h"
|
||
//暂未用
|
||
typedef NS_ENUM(NSInteger,soketofflineStyle){
|
||
SocketOfflineByServer,// 服务器掉线,默认为0
|
||
SocketOfflineByUser // 用户主动cut
|
||
};
|
||
|
||
/**
|
||
* 原为展示右侧边栏 已去 主界面 为侧边栏中心界面 这里保留侧边栏 但只显示主界面
|
||
左右侧边栏均不展示
|
||
这里为方便修改 未去侧边栏 暂时保留 不调用 [self.drawer openRight] [self.drawer openLeft] 即可
|
||
*/
|
||
|
||
|
||
@interface CenterViewController :UIViewController
|
||
<IfishCommuniteDelegate>
|
||
|
||
@property (nonatomic,strong) UILabel *name;
|
||
@property(nonatomic,assign)soketofflineStyle soketOfflineType;
|
||
//@property(nonatomic,retain) Socketsingleton *singletonSocket;
|
||
@property(nonatomic,weak)ICSDrawerController*drawer;
|
||
|
||
@property(nonatomic,strong)UITableView *tableView;
|
||
|
||
@property(nonatomic,strong)NSArray*dataArr;
|
||
@property(nonatomic,strong)NSArray*labelArr;
|
||
|
||
@property(nonatomic,strong)UILabel*temperature;
|
||
@property(nonatomic)BOOL isRefeshing;
|
||
@property(nonatomic)BOOL btnIsLocked;
|
||
|
||
|
||
@property(nonatomic,strong)UILabel*waringLabel;
|
||
//高低温效果
|
||
@property(nonatomic,strong)UIImageView*temperaturebackImg;
|
||
// 球
|
||
@property(nonatomic,strong)UIImageView *bubble;
|
||
// 设备离线 label
|
||
@property(nonatomic,strong) UILabel *notOnLineLabel;
|
||
|
||
|
||
//-(void)creatRefreshView;
|
||
-(void)endRefreshing;
|
||
|
||
-(void)creatFishAnimation;
|
||
|
||
@property (nonatomic, retain) NSTimer*connectTimer;
|
||
|
||
@property(nonatomic,strong)NSArray *binddeviceArr;
|
||
|
||
|
||
@property(nonatomic,strong) NSString *index1;
|
||
@property(nonatomic,strong) NSString *index2;
|
||
|
||
//设备model
|
||
@property(nonatomic,strong) DeviceModel* currentDevice;
|
||
|
||
@property(nonatomic,strong) UIImageView * animView;
|
||
|
||
//设置button 点击事件 v.2.0 后已废弃
|
||
|
||
@property(nonatomic,strong) UIButton*SetTimeButton;
|
||
//设置 图片
|
||
|
||
@property(nonatomic,strong) UIImageView*setImag;
|
||
|
||
@property(nonatomic,strong) UIButton *setbackBtn;
|
||
//摄氏度C
|
||
@property(nonatomic,strong)UILabel*dulabel;
|
||
|
||
|
||
//二维码码按钮 v.2.0 后已废弃
|
||
//@property(nonatomic,strong) UIButton*erWeiButton;
|
||
|
||
//锁屏图片
|
||
|
||
@property(nonatomic,strong)UIImageView*clockView;
|
||
|
||
|
||
//水箱温度Label
|
||
//@property(nonatomic,strong)UILabel*shuixiangwendu;
|
||
|
||
// 厂家model
|
||
|
||
|
||
//chatroom model
|
||
|
||
@property(nonatomic,strong)ChatroomModel *chatModel;
|
||
|
||
//加载效果
|
||
@property(nonatomic,strong) MyHud *myhud;
|
||
|
||
@property(nonatomic,copy) UIActivityIndicatorView *indicatorView;
|
||
|
||
@property(nonatomic) BOOL isconnect;// socket 是否连接
|
||
|
||
-(void)requesDeviceData;
|
||
|
||
-(void)initHUD;
|
||
|
||
-(void)wenduRequest;
|
||
|
||
-(void)deviceNotOnlineState;
|
||
|
||
-(void)pushWiFiConnectVC;
|
||
|
||
//返回消息长度
|
||
@property(nonatomic) NSInteger dataLength;
|
||
|
||
- (void)showLableAction:(NSString *)str;
|
||
|
||
-(void)creatTableView;
|
||
-(void)initUI;
|
||
|
||
@end
|