@@ -44,6 +44,12 @@ public partial class CalendarEvent : IEquatable<CalendarEvent>, IValidatableObje
4444 /// </summary>
4545 [ DataMember ( Name = "category" , IsRequired = true , EmitDefaultValue = true ) ]
4646 public CalendarEventCategory Category { get ; set ; }
47+
48+ /// <summary>
49+ /// Gets or Sets OccurrenceKind
50+ /// </summary>
51+ [ DataMember ( Name = "occurrenceKind" , EmitDefaultValue = false ) ]
52+ public CalendarEventOccurrenceKind ? OccurrenceKind { get ; set ; }
4753 /// <summary>
4854 /// Initializes a new instance of the <see cref="CalendarEvent" /> class.
4955 /// </summary>
@@ -69,10 +75,10 @@ protected CalendarEvent() { }
6975 /// <param name="interestedUserCount">interestedUserCount.</param>
7076 /// <param name="isDraft">isDraft.</param>
7177 /// <param name="languages">Languages that might be spoken at this event.</param>
72- /// <param name="occurrenceKind">So far if it exists, always the string \"single\" .</param>
78+ /// <param name="occurrenceKind">occurrenceKind .</param>
7379 /// <param name="ownerId">ownerId.</param>
7480 /// <param name="platforms">platforms.</param>
75- /// <param name="recurrence">So far unused, always \"null\" .</param>
81+ /// <param name="recurrence">recurrence .</param>
7682 /// <param name="roleIds">Group roles that may join this event.</param>
7783 /// <param name="seriesId">So far unused, always \"null\".</param>
7884 /// <param name="startsAt">startsAt (required).</param>
@@ -82,7 +88,7 @@ protected CalendarEvent() { }
8288 /// <param name="updatedAt">updatedAt.</param>
8389 /// <param name="userInterest">userInterest.</param>
8490 /// <param name="usesInstanceOverflow">usesInstanceOverflow.</param>
85- public CalendarEvent ( CalendarEventAccess accessType = default , CalendarEventCategory category = default , int closeInstanceAfterEndMinutes = default , DateTime createdAt = default , DateTime ? deletedAt = default , string description = default , long durationInMs = default , DateTime endsAt = default , bool featured = default , int guestEarlyJoinMinutes = default , int hostEarlyJoinMinutes = default , string id = default , string imageId = default , string imageUrl = default , int interestedUserCount = default , bool isDraft = default , List < string > languages = default , string occurrenceKind = default , string ownerId = default , List < CalendarEventPlatform > platforms = default , string recurrence = default , List < string > roleIds = default , string seriesId = default , DateTime startsAt = default , List < string > tags = default , string title = default , string type = default , DateTime updatedAt = default , CalendarEventUserInterest userInterest = default , bool usesInstanceOverflow = default )
91+ public CalendarEvent ( CalendarEventAccess accessType = default , CalendarEventCategory category = default , int closeInstanceAfterEndMinutes = default , DateTime createdAt = default , DateTime ? deletedAt = default , string description = default , long durationInMs = default , DateTime endsAt = default , bool featured = default , int guestEarlyJoinMinutes = default , int hostEarlyJoinMinutes = default , string id = default , string imageId = default , string imageUrl = default , int interestedUserCount = default , bool isDraft = default , List < string > languages = default , CalendarEventOccurrenceKind ? occurrenceKind = default , string ownerId = default , List < CalendarEventPlatform > platforms = default , CalendarEventRecurrence recurrence = default , List < string > roleIds = default , string seriesId = default , DateTime startsAt = default , List < string > tags = default , string title = default , string type = default , DateTime updatedAt = default , CalendarEventUserInterest userInterest = default , bool usesInstanceOverflow = default )
8692 {
8793 this . AccessType = accessType ;
8894 this . Category = category ;
@@ -216,13 +222,6 @@ public CalendarEvent(CalendarEventAccess accessType = default, CalendarEventCate
216222 [ DataMember ( Name = "languages" , EmitDefaultValue = false ) ]
217223 public List < string > Languages { get ; set ; }
218224
219- /// <summary>
220- /// So far if it exists, always the string \"single\"
221- /// </summary>
222- /// <value>So far if it exists, always the string \"single\"</value>
223- [ DataMember ( Name = "occurrenceKind" , EmitDefaultValue = false ) ]
224- public string OccurrenceKind { get ; set ; }
225-
226225 /// <summary>
227226 /// Gets or Sets OwnerId
228227 /// </summary>
@@ -239,11 +238,10 @@ public CalendarEvent(CalendarEventAccess accessType = default, CalendarEventCate
239238 public List < CalendarEventPlatform > Platforms { get ; set ; }
240239
241240 /// <summary>
242- /// So far unused, always \"null\"
241+ /// Gets or Sets Recurrence
243242 /// </summary>
244- /// <value>So far unused, always \"null\"</value>
245243 [ DataMember ( Name = "recurrence" , EmitDefaultValue = true ) ]
246- public string Recurrence { get ; set ; }
244+ public CalendarEventRecurrence Recurrence { get ; set ; }
247245
248246 /// <summary>
249247 /// Group roles that may join this event
@@ -457,8 +455,7 @@ public bool Equals(CalendarEvent input)
457455 ) &&
458456 (
459457 this . OccurrenceKind == input . OccurrenceKind ||
460- ( this . OccurrenceKind != null &&
461- this . OccurrenceKind . Equals ( input . OccurrenceKind ) )
458+ this . OccurrenceKind . Equals ( input . OccurrenceKind )
462459 ) &&
463460 (
464461 this . OwnerId == input . OwnerId ||
@@ -574,10 +571,7 @@ public override int GetHashCode()
574571 {
575572 hashCode = ( hashCode * 59 ) + this . Languages . GetHashCode ( ) ;
576573 }
577- if ( this . OccurrenceKind != null )
578- {
579- hashCode = ( hashCode * 59 ) + this . OccurrenceKind . GetHashCode ( ) ;
580- }
574+ hashCode = ( hashCode * 59 ) + this . OccurrenceKind . GetHashCode ( ) ;
581575 if ( this . OwnerId != null )
582576 {
583577 hashCode = ( hashCode * 59 ) + this . OwnerId . GetHashCode ( ) ;
0 commit comments