-
Notifications
You must be signed in to change notification settings - Fork 0
/
RCParameter.h
38 lines (30 loc) · 1.24 KB
/
RCParameter.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
//
// RCParameter.h
// RestClient
//
// Created by Alberto García Hierro on 16/04/09.
// Copyright 2009 Alberto García Hierro. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <CoreGraphics/CoreGraphics.h>
@class RCCall;
@interface RCParameter : NSObject {
NSString *name_;
NSString *value_;
}
@property(nonatomic, copy) NSString *name;
@property(nonatomic, copy) NSString *value;
- (id)initWithName:(NSString *)theName value:(NSString *)theValue;
- (id)initWithName:(NSString *)theName intValue:(NSInteger)theIntValue;
- (id)initWithName:(NSString *)theName floatValue:(CGFloat)theFloatValue;
- (id)initWithName:(NSString *)theName boolValue:(BOOL)theBoolValue;
- (void)attachToCall:(RCCall *)theCall;
- (NSString *)URLEncodedValue;
+ (NSString *)URLEncodedString:(NSString *)theString;
+ (NSString *)URLEncodedParameterString:(NSString *)theString;
+ (id)parameterWithName:(NSString *)theName value:(NSString *)theValue;
+ (id)parameterWithName:(NSString *)theName intValue:(NSInteger)theIntValue;
+ (id)parameterWithName:(NSString *)theName floatValue:(CGFloat)theFloatValue;
+ (id)parameterWithName:(NSString *)theName boolValue:(BOOL)theBoolValue;
+ (NSArray *)parameterList:(NSString *)firstName, ... NS_REQUIRES_NIL_TERMINATION;
@end