ifish/Ifish/Utinitys/IfishHttpRequest/IFISHHttpTool.h

173 lines
4.7 KiB
Objective-C

//
// IFISHHttpTool.h
// Ifish
//
// Created by imac on 15/12/24.
// Copyright © 2015年 imac. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "DeviceModel.h"
#import "ChatroomModel.h"
#import "UserModel.h"
#import "merchantModel.h"
#import "LeftViewController.h"
#import "ICSDrawerController.h"
#import "CenterViewController.h"
#import "RightViewController.h"
#import "AppDelegate.h"
#import "LogInViewController.h"
#import "AFNetworking.h"
#import "DisconnectNetController.h"
#import "setRemindWaterModel.h"
#import "TwoControlCenterController.h"
#import "ThreeControlCenterViewController.h"
#import "FourControlViewController.h"
#import "NoneControlCenterViewController.h"
#import "XuToCenterViewController.h"
#import "PuasiphysicalSkinViewController.h"
#import "IfishBlackListCenterViewController.h"
#import "KeLiAiCenterViewController.h"
#import "FourControlNormalCenterController.h"
#import "SonNuoCenterViewController.h"
#import "ShopCertifyStausModel.h"
#import "CertificationShopModel.h"
#import "UIViewController+Navgation.h"
#import <SMS_SDK/SMSSDK.h>
typedef void (^backVerifyCode)(NSString*verifycode);
//下次换水时间
typedef void (^nexChangeWaterTime)(setRemindWaterModel*remindModel);
//换水提醒信息获取
typedef void(^changeWaterInf)(setRemindWaterModel*remindModel);
typedef void (^cameraIsActive)(NSString *cameIsActive);
//查询商铺认证信息
typedef void(^ShopCertifyStaus)(ShopCertifyStausModel*shopCertifyd);
//选择看护商家
typedef void(^kanHuShangJia)(CertificationShopModel*kanHuShangJia);
@interface IFISHHttpTool : NSObject
@property(nonatomic,strong)ICSDrawerController*ics;
@property(nonatomic,strong)UIActivityIndicatorView*indcView;
+(IFISHHttpTool*)shareInstance;
/**
* login 适用于 自动登录 DisconnectNetController断网登录 DownLoadViewController下载更新未下载 返回登录
注册完界面自动登录 登录界面登录 暂未封装此方法不适用
*/
-(void)ifishLogindismissvc:(DisconnectNetController*)disconnectVC;
/**
* 获取验证码 阿里
*
* @param timeBtn 验证码按钮
* @param phoneNumber phoneNumber
* @param sendType 验证类型
*/
-(void)getVerifyCodeWithTimerButton:(UIButton*)timeBtn
addPhoneNumber:(NSString*)phoneNumber
addSendType:(NSString*)sendType
backData:(backVerifyCode)backVerifyCodeblock;
/**
* 获取验证码 SMS
*
* @param timeBtn 验证码按钮
* @param zone 区域号,不要加"+"号(Area code)
*
*/
-(void)getverifyWithTimerButton:(UIButton*)timeBtn addphoneNumber:(NSString*)phoneNumber zone:
(NSString*)areaCode result:(void (^)(NSError *err))result;
/**
* 获取验证码 SMS
*
* @param timeBtn 验证码按钮
* @param zone 区域号,不要加"+"号(Area code)
* @param isTextCode 是否为短信验证码
*/
-(void)getverifyWithTimerButton:(UIButton*)timeBtn addphoneNumber:(NSString*)phoneNumber zone:
(NSString*)areaCode isTextCode:(BOOL)isTextCode result:(void (^)(NSError *err))result;
/**
* 注册
*
* @param phoneNumber phoneNumber
* @param passwd passwd
* @param phoneType phoneType
* @param Address Address
*/
-(void)ifishRegistWithPhoneNumber:(NSString*)phoneNumber addWithPasswd:(NSString*)passwd addwithPhonetype:(NSString*)phoneType addAddress:(NSString*)Address longitude:(double)longitude
latitude:(double)latitude;
/**
* 接口实现部分
*/
//保存自定义图片
-(void)saveCustomIconwith:(NSNumber*)userId customIconName:(NSString*)customIconName addDeviceId:(NSString*)deviceId addcustomShowName:(NSString*)customShowName;
/**
* 设置换水提醒
*/
-(void)setRemindWaterInfWith:(NSString*)deviceId
waterRemind:(NSString*)waterRemind
remindCycle:(NSString*)remindCycle
huishuiShiJian:(nexChangeWaterTime)reminDate;
/**
* 获取换水提醒
*/
-(void)getRemindWaterInfWith:(NSString*)deviceId
huishuiInfo:(changeWaterInf)waterinfo;
/**
* 扫码激活摄像头
*/
-(void)scanCamerawith:(NSString *)cameraId
andeviceId:(NSString *)deviceId
backInfo:(cameraIsActive)cameraActive
success:(void (^)(id response))success
failure:(void (^)(NSError* err))failure;
/**
* 店铺审核状态查询
*
*
*/
-(void)shopCertifyStausWith:(NSString*)shopId
huishuiShiJian:(ShopCertifyStaus)ShopCertify;
-(void)newshopCertifyStausWith:(NSString*)shopId
huishuiShiJian:(ShopCertifyStaus)ShopCertify;
/**
* 选择看护商家
*/
-(void)xuanZeKanHuShnagJiaWith:(NSString *)shopsPhone
UserId :(NSNumber *)userId
xuaZeShangJia:(kanHuShangJia)kanHuShangJia;
@end