-
Notifications
You must be signed in to change notification settings - Fork 0
/
RaversWebserviceManager.h
44 lines (32 loc) · 1.76 KB
/
RaversWebserviceManager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//
// RaversWebserviceManager.h
//
// Created by mac on 4/25/15.
// Copyright (c) 2015 WifiConnector. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "AFNetworking.h"
@interface RaversWebserviceManager : NSObject
@property (strong, nonatomic) AFNetworkReachabilityManager *afReachability;
+ (RaversWebserviceManager *) sharedInstance;
-(void)serviceRequestWithParameter:(NSMutableDictionary *)parameters
methodName:(NSString *)methodName
isShowLoader:(BOOL)isShowLoader
completionBlockSuccess:(void (^)(NSMutableDictionary *))succesBlock
completionBlockFailiure:(void (^)(NSError *error))aFailBlock;
/*-(void)serviceRequestWithParameter:(NSMutableDictionary *)parameters
methodName:(NSString *)methodName
completionBlockSuccess:(void (^)(NSMutableDictionary *))succesBlock
completionBlockFailiure:(void (^)(NSError *error))aFailBlock;*/
-(void)serviceRequestWithGetParameter:(NSMutableDictionary *)getParams
postParameter:(NSMutableDictionary *)postParams
methodName:(NSString *)methodName
completionBlockSuccess:(void (^)(NSMutableDictionary *))succesBlock
completionBlockFailiure:(void (^)(NSError *error))aFailBlock;
-(void)doPerfromLogin:(NSString *)UrlString andParam:(NSMutableDictionary *)parameter andMethod:(NSString *)methodType completionBlockSuccess:(void (^)(NSMutableDictionary *))succesBlock completionBlockFailiure:(void (^)(NSError *error))aFailBlock;
-(void)doUpdateUserCurrentLocationOnServerWithLocation:(CLLocationCoordinate2D)locationCord;
-(void)showToastOnWindowWithTitle:(NSString *)title;
-(void)showLoader;
-(void)hideLoader;
- (BOOL)connected;
@end