|
56 | 56 | inputDateType:(kInputDateFormat)inputDateType
|
57 | 57 | mappings:(NSDictionary *)mapping;
|
58 | 58 |
|
| 59 | +/** |
| 60 | + * class initializer |
| 61 | + * |
| 62 | + * @param dictionary dictionary containing key/value pairs for the object |
| 63 | + * @param option `kDateConverstionOption` to determine what to do when the value from dictionary is a DOT.NET Date |
| 64 | + *type. |
| 65 | + * @param inputDateFormat NSDateFormatter format specifier which will be used to format the input date. this will use |
| 66 | + *the systemTimeZone to create the formatter |
| 67 | + * @param mapping dictionary to define the mappings for date conversion and array <-> object. |
| 68 | + * |
| 69 | + * @return object of type instancetype populated with the values from `dictionary` |
| 70 | + */ |
| 71 | +- (instancetype)initWithDictionary:(NSDictionary *)dictionary |
| 72 | + dateConversionOption:(kDateConversionOption)option |
| 73 | + inputDateFormat:(NSString *)inputDateFormat |
| 74 | + mappings:(NSDictionary *)mapping; |
| 75 | + |
| 76 | +/** |
| 77 | + * class initializer |
| 78 | + * |
| 79 | + * @param dictionary dictionary containing key/value pairs for the object |
| 80 | + * @param option `kDateConverstionOption` to determine what to do when the value from dictionary is a DOT.NET Date |
| 81 | + *type. |
| 82 | + * @param inputDateFormatter NSDateFormatter object which will be used to format the input date. |
| 83 | + * @param mapping dictionary to define the mappings for date conversion and array <-> object. |
| 84 | + * |
| 85 | + * @return object of type instancetype populated with the values from `dictionary` |
| 86 | + */ |
| 87 | + |
| 88 | +- (instancetype)initWithDictionary:(NSDictionary *)dictionary |
| 89 | + dateConversionOption:(kDateConversionOption)option |
| 90 | + inputDateFormatter:(NSDateFormatter *)inputDateFormatter |
| 91 | + mappings:(NSDictionary *)mapping; |
| 92 | + |
| 93 | + |
59 | 94 | /**
|
60 | 95 | * static variant of class initializer with nil check for the dictionary passed
|
61 | 96 | *
|
|
93 | 128 | inputDateType:(kInputDateFormat)inputDateType
|
94 | 129 | mappings:(NSDictionary *)mapping;
|
95 | 130 |
|
| 131 | +/** |
| 132 | + * static variant of class initializer with nil check for the dictionary passed |
| 133 | + * |
| 134 | + * @param dictionary dictionary containing key/value pairs for the object |
| 135 | + * @param option `kDateConverstionOption` to determine what to do when the value from dictionary is a DOT.NET Date |
| 136 | + *type. |
| 137 | + * @param inputDateFormat NSDateFormatter format specifier which will be used to format the input date. this will use |
| 138 | + *the systemTimeZone to create the formatter |
| 139 | + * @param mapping dictionary to define the mappings for date conversion and array <-> object. |
| 140 | + * |
| 141 | + * @return object of type instancetype populated with the values from `dictionary` |
| 142 | + */ |
| 143 | ++ (instancetype)objectWithDictionary:(NSDictionary *)dictionary |
| 144 | + dateConversionOption:(kDateConversionOption)option |
| 145 | + inputDateFormat:(NSString *)inputDateFormat |
| 146 | + mappings:(NSDictionary *)mapping; |
| 147 | + |
| 148 | +/** |
| 149 | + * static variant of class initializer with nil check for the dictionary passed |
| 150 | + * |
| 151 | + * @param dictionary dictionary containing key/value pairs for the object |
| 152 | + * @param option `kDateConverstionOption` to determine what to do when the value from dictionary is a DOT.NET Date |
| 153 | + *type. |
| 154 | + * @param inputDateFormatter NSDateFormatter object which will be used to format the input date. |
| 155 | + * @param mapping dictionary to define the mappings for date conversion and array <-> object. |
| 156 | + * |
| 157 | + * @return object of type instancetype populated with the values from `dictionary` |
| 158 | + */ |
| 159 | ++ (instancetype)objectWithDictionary:(NSDictionary *)dictionary |
| 160 | + dateConversionOption:(kDateConversionOption)option |
| 161 | + inputDateFormatter:(NSDateFormatter *)inputDateFormatter |
| 162 | + mappings:(NSDictionary *)mapping; |
| 163 | + |
| 164 | + |
96 | 165 | /**
|
97 | 166 | * update the instance with new dictionary values
|
98 | 167 | *
|
|
117 | 186 | dateConversionOption:(kDateConversionOption)option
|
118 | 187 | inputDateType:(kInputDateFormat)inputDateType
|
119 | 188 | mappings:(NSDictionary *)mapping;
|
| 189 | + |
| 190 | +/** |
| 191 | + * update the instance with new dictionary values |
| 192 | + * |
| 193 | + * @param dictionary dictionary containing key/value pairs for the object |
| 194 | + * @param option `kDateConverstionOption` to determine what to do when the value from dictionary is a DOT.NET Date |
| 195 | + *type. |
| 196 | + * @param inputDateFormat NSDateFormatter format specifier which will be used to format the input date. this will use |
| 197 | + *the systemTimeZone to create the formatter |
| 198 | + * @param mapping dictionary to define the mappings for date conversion and array <-> object. |
| 199 | + * |
| 200 | + * @return object of type instancetype populated with the values from `dictionary` |
| 201 | + */ |
| 202 | +- (instancetype)updateWithDictionary:(NSDictionary *)dictionary |
| 203 | + dateConversionOption:(kDateConversionOption)option |
| 204 | + inputDateFormat:(NSString *)inputDateFormat |
| 205 | + mappings:(NSDictionary *)mapping; |
| 206 | + |
| 207 | +/** |
| 208 | + * update the instance with new dictionary values |
| 209 | + * |
| 210 | + * @param dictionary dictionary containing key/value pairs for the object |
| 211 | + * @param option `kDateConverstionOption` to determine what to do when the value from dictionary is a DOT.NET Date |
| 212 | + *type. |
| 213 | + * @param inputDateFormatter NSDateFormatter object which will be used to format the input date. |
| 214 | + * @param mapping dictionary to define the mappings for date conversion and array <-> object. |
| 215 | + * |
| 216 | + * @return object of type instancetype populated with the values from `dictionary` |
| 217 | + */ |
| 218 | +- (instancetype)updateWithDictionary:(NSDictionary *)dictionary |
| 219 | + dateConversionOption:(kDateConversionOption)option |
| 220 | + inputDateFormatter:(NSDateFormatter *)inputDateFormatter |
| 221 | + mappings:(NSDictionary *)mapping; |
| 222 | + |
120 | 223 | @end
|
121 | 224 |
|
122 | 225 | @interface NSString (Additions)
|
|
0 commit comments