4d8bbdc7ef
Add to Git the current app version (the same available in the OriginalZip folder)
31 lines
956 B
Objective-C
31 lines
956 B
Objective-C
//
|
|
// ServerRequest.h
|
|
// Telegea
|
|
//
|
|
// Created by Luca Beretta on 15/02/17.
|
|
// Copyright © 2017 Luca Beretta. All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
#import <UIKit/UIKit.h>
|
|
#import "Costanti.h"
|
|
|
|
|
|
@interface ServerRequest : NSObject <NSURLSessionDelegate, NSURLSessionTaskDelegate>
|
|
|
|
@property (nonatomic) BOOL isConnect;
|
|
|
|
|
|
+(ServerRequest *) defaultServerConnectionSingleton;
|
|
|
|
-(void)inviaInformazioniAlServerWithURL:(NSURL *)url richiesta:(EQNTipoChiamata )chiamata success:(void(^)(id result)) success failure:(void(^)(NSError *))failure;
|
|
|
|
-(void)inviaRicevuta:(NSData *)ricevuta success:(void(^)(id result)) success failure:(void(^)(NSError *))failure;
|
|
|
|
/*
|
|
-(void)sendGetMethod:(NSURLRequest *)request typeRequest:(TypeRequest)type success:(void(^)(id dictionary)) success failure:(void(^)(NSError *))failure;
|
|
|
|
-(UIAlertController *)mostraAllertWithMessage:(NSString *)messaggio close:(void(^)(BOOL terminato))terminato;
|
|
*/
|
|
@end
|