-
Notifications
You must be signed in to change notification settings - Fork 1
/
ServiceParameter.h
executable file
·46 lines (35 loc) · 1.27 KB
/
ServiceParameter.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
45
46
//
// ServiceParameter.h
// test
//
// Created by Minesh Purohit on 31/07/14.
// Copyright (c) 2014 MinuMaster. All rights reserved.
//
#import <Foundation/Foundation.h>
typedef enum : NSUInteger {
SCTypeText,
SCTypeImage,
SCTypeFile,
} MyEnum;
@interface ServiceParameter : NSObject
{
id value;
NSString * key;
NSString * fileName;
long valueType;
NSString * contentType;
// In Seconds.
NSInteger timeoutTime;
}
@property (nonatomic,retain) id value;
@property (nonatomic,retain) NSString * key;
@property (nonatomic,retain) NSString * fileName, *contentType;
@property (nonatomic,readwrite) long valueType;
@property (nonatomic, readwrite) NSInteger timeoutTime;
+ (NSString *) getContentTypeForExtension:(NSString *) extension;
+ (NSString *) getTextFromString:(NSString *)strString;
+ (ServiceParameter *) getTextParameterKey:(NSString *) key andValue:(id) value;
+ (ServiceParameter *) getImageParameterKey:(NSString *) key withValue:(id) value andFileName:(NSString *) fileName;
+ (ServiceParameter *) getFileParameterKey:(NSString *) key withValue:(id) value andFileName:(NSString *) fileName;
+ (ServiceParameter *) getDirectHTTPPostBody:(id) value withContentType:(NSString *) contentType andTimeOutTime:(NSInteger) timeOut;
@end