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