Browse Source

Add missing function

yogevbd 4 years ago
parent
commit
2141d065cd
2 changed files with 6 additions and 0 deletions
  1. 2
    0
      lib/ios/Param.h
  2. 4
    0
      lib/ios/Param.m

+ 2
- 0
lib/ios/Param.h View File

2
 
2
 
3
 @interface Param : NSObject
3
 @interface Param : NSObject
4
 
4
 
5
++ (instancetype)withValue:(id)value;
6
+
5
 - (instancetype)initWithValue:(id)value;
7
 - (instancetype)initWithValue:(id)value;
6
 
8
 
7
 - (id)get;
9
 - (id)get;

+ 4
- 0
lib/ios/Param.m View File

9
 
9
 
10
 @implementation Param
10
 @implementation Param
11
 
11
 
12
++ (instancetype)withValue:(id)value {
13
+    return [[self.class alloc] initWithValue:value];
14
+}
15
+
12
 - (instancetype)initWithValue:(id)value {
16
 - (instancetype)initWithValue:(id)value {
13
 	self = [super init];
17
 	self = [super init];
14
 	self.value = value;
18
 	self.value = value;