//
//  WebService.h
//  Prototype1
//
//  Created by temp on 1/4/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol WebServiceDelegate
- (void)webServiceReceivedResponse:(NSData *)data fileBytes:(NSData *)fileBytes file:(NSString *)file withSender:(id)sender;
- (void)webServiceFailedWithError:(NSError *) error withSender:(id)sender;
@end

@interface WebService : NSObject

@property (nonatomic, strong) NSMutableData            *data;
@property (nonatomic, strong) id                delegate;
@property (nonatomic) BOOL useDeviceLicense;
@property (nonatomic, strong) NSString *sessionId;
@property (nonatomic) BOOL newSession;
@property (nonatomic) BOOL endSession;
@property (nonatomic) float webServiceTimeout;
@property (nonatomic, strong) NSString *downloadFileName;

- (void)sendRequest:(NSString *) request;
- (void)sendRequest:(NSString *) request withFileBytes:(NSData *)fileBytes;

@end
