@@ -21,10 +21,10 @@ @interface MSGraphCalendar()
2121 BOOL _canViewPrivateItems;
2222 BOOL _canEdit;
2323 MSGraphEmailAddress* _owner;
24- NSArray * _events;
25- NSArray * _calendarView;
2624 NSArray * _singleValueExtendedProperties;
2725 NSArray * _multiValueExtendedProperties;
26+ NSArray * _events;
27+ NSArray * _calendarView;
2828}
2929@end
3030
@@ -129,104 +129,104 @@ - (void) setOwner: (MSGraphEmailAddress*) val
129129 self.dictionary [@" owner" ] = val;
130130}
131131
132- - (NSArray *) events
132+ - (NSArray *) singleValueExtendedProperties
133133{
134- if (!_events ){
134+ if (!_singleValueExtendedProperties ){
135135
136- NSMutableArray *eventsResult = [NSMutableArray array ];
137- NSArray *events = self.dictionary [@" events " ];
136+ NSMutableArray *singleValueExtendedPropertiesResult = [NSMutableArray array ];
137+ NSArray *singleValueExtendedProperties = self.dictionary [@" singleValueExtendedProperties " ];
138138
139- if ([events isKindOfClass: [NSArray class ]]){
140- for (id tempEvent in events ){
141- [eventsResult addObject: tempEvent ];
139+ if ([singleValueExtendedProperties isKindOfClass: [NSArray class ]]){
140+ for (id tempSingleValueLegacyExtendedProperty in singleValueExtendedProperties ){
141+ [singleValueExtendedPropertiesResult addObject: tempSingleValueLegacyExtendedProperty ];
142142 }
143143 }
144144
145- _events = eventsResult ;
145+ _singleValueExtendedProperties = singleValueExtendedPropertiesResult ;
146146
147147 }
148- return _events ;
148+ return _singleValueExtendedProperties ;
149149}
150150
151- - (void ) setEvents : (NSArray *) val
151+ - (void ) setSingleValueExtendedProperties : (NSArray *) val
152152{
153- _events = val;
154- self.dictionary [@" events " ] = val;
153+ _singleValueExtendedProperties = val;
154+ self.dictionary [@" singleValueExtendedProperties " ] = val;
155155}
156156
157- - (NSArray *) calendarView
157+ - (NSArray *) multiValueExtendedProperties
158158{
159- if (!_calendarView ){
159+ if (!_multiValueExtendedProperties ){
160160
161- NSMutableArray *calendarViewResult = [NSMutableArray array ];
162- NSArray *calendarView = self.dictionary [@" calendarView " ];
161+ NSMutableArray *multiValueExtendedPropertiesResult = [NSMutableArray array ];
162+ NSArray *multiValueExtendedProperties = self.dictionary [@" multiValueExtendedProperties " ];
163163
164- if ([calendarView isKindOfClass: [NSArray class ]]){
165- for (id tempEvent in calendarView ){
166- [calendarViewResult addObject: tempEvent ];
164+ if ([multiValueExtendedProperties isKindOfClass: [NSArray class ]]){
165+ for (id tempMultiValueLegacyExtendedProperty in multiValueExtendedProperties ){
166+ [multiValueExtendedPropertiesResult addObject: tempMultiValueLegacyExtendedProperty ];
167167 }
168168 }
169169
170- _calendarView = calendarViewResult ;
170+ _multiValueExtendedProperties = multiValueExtendedPropertiesResult ;
171171
172172 }
173- return _calendarView ;
173+ return _multiValueExtendedProperties ;
174174}
175175
176- - (void ) setCalendarView : (NSArray *) val
176+ - (void ) setMultiValueExtendedProperties : (NSArray *) val
177177{
178- _calendarView = val;
179- self.dictionary [@" calendarView " ] = val;
178+ _multiValueExtendedProperties = val;
179+ self.dictionary [@" multiValueExtendedProperties " ] = val;
180180}
181181
182- - (NSArray *) singleValueExtendedProperties
182+ - (NSArray *) events
183183{
184- if (!_singleValueExtendedProperties ){
184+ if (!_events ){
185185
186- NSMutableArray *singleValueExtendedPropertiesResult = [NSMutableArray array ];
187- NSArray *singleValueExtendedProperties = self.dictionary [@" singleValueExtendedProperties " ];
186+ NSMutableArray *eventsResult = [NSMutableArray array ];
187+ NSArray *events = self.dictionary [@" events " ];
188188
189- if ([singleValueExtendedProperties isKindOfClass: [NSArray class ]]){
190- for (id tempSingleValueLegacyExtendedProperty in singleValueExtendedProperties ){
191- [singleValueExtendedPropertiesResult addObject: tempSingleValueLegacyExtendedProperty ];
189+ if ([events isKindOfClass: [NSArray class ]]){
190+ for (id tempEvent in events ){
191+ [eventsResult addObject: tempEvent ];
192192 }
193193 }
194194
195- _singleValueExtendedProperties = singleValueExtendedPropertiesResult ;
195+ _events = eventsResult ;
196196
197197 }
198- return _singleValueExtendedProperties ;
198+ return _events ;
199199}
200200
201- - (void ) setSingleValueExtendedProperties : (NSArray *) val
201+ - (void ) setEvents : (NSArray *) val
202202{
203- _singleValueExtendedProperties = val;
204- self.dictionary [@" singleValueExtendedProperties " ] = val;
203+ _events = val;
204+ self.dictionary [@" events " ] = val;
205205}
206206
207- - (NSArray *) multiValueExtendedProperties
207+ - (NSArray *) calendarView
208208{
209- if (!_multiValueExtendedProperties ){
209+ if (!_calendarView ){
210210
211- NSMutableArray *multiValueExtendedPropertiesResult = [NSMutableArray array ];
212- NSArray *multiValueExtendedProperties = self.dictionary [@" multiValueExtendedProperties " ];
211+ NSMutableArray *calendarViewResult = [NSMutableArray array ];
212+ NSArray *calendarView = self.dictionary [@" calendarView " ];
213213
214- if ([multiValueExtendedProperties isKindOfClass: [NSArray class ]]){
215- for (id tempMultiValueLegacyExtendedProperty in multiValueExtendedProperties ){
216- [multiValueExtendedPropertiesResult addObject: tempMultiValueLegacyExtendedProperty ];
214+ if ([calendarView isKindOfClass: [NSArray class ]]){
215+ for (id tempEvent in calendarView ){
216+ [calendarViewResult addObject: tempEvent ];
217217 }
218218 }
219219
220- _multiValueExtendedProperties = multiValueExtendedPropertiesResult ;
220+ _calendarView = calendarViewResult ;
221221
222222 }
223- return _multiValueExtendedProperties ;
223+ return _calendarView ;
224224}
225225
226- - (void ) setMultiValueExtendedProperties : (NSArray *) val
226+ - (void ) setCalendarView : (NSArray *) val
227227{
228- _multiValueExtendedProperties = val;
229- self.dictionary [@" multiValueExtendedProperties " ] = val;
228+ _calendarView = val;
229+ self.dictionary [@" calendarView " ] = val;
230230}
231231
232232
0 commit comments