11// <auto-generated/>
2+ #pragma warning disable CS0618
3+ using Microsoft . Kiota . Abstractions . Extensions ;
24using Microsoft . Kiota . Abstractions . Serialization ;
35using System . Collections . Generic ;
46using System . IO ;
5- using System . Linq ;
67using System ;
7- namespace ApiSdk . Models {
8- public class ActivityHistoryItem : Entity , IParsable {
8+ namespace ApiSdk . Models
9+ {
10+ [ global ::System . CodeDom . Compiler . GeneratedCode ( "Kiota" , "1.0.0" ) ]
11+ #pragma warning disable CS1591
12+ public partial class ActivityHistoryItem : global ::ApiSdk . Models . Entity , IParsable
13+ #pragma warning restore CS1591
14+ {
915 /// <summary>Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.</summary>
1016 public int ? ActiveDurationSeconds { get ; set ; }
1117 /// <summary>The activity property</summary>
1218#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
1319#nullable enable
14- public UserActivity ? Activity { get ; set ; }
20+ public global :: ApiSdk . Models . UserActivity ? Activity { get ; set ; }
1521#nullable restore
1622#else
17- public UserActivity Activity { get ; set ; }
23+ public global :: ApiSdk . Models . UserActivity Activity { get ; set ; }
1824#endif
1925 /// <summary>Set by the server. DateTime in UTC when the object was created on the server.</summary>
2026 public DateTimeOffset ? CreatedDateTime { get ; set ; }
21- /// <summary>Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.</summary>
27+ /// <summary>Optional. UTC DateTime when the activityHistoryItem will undergo hard-delete. Can be set by the client.</summary>
2228 public DateTimeOffset ? ExpirationDateTime { get ; set ; }
23- /// <summary>Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.</summary>
29+ /// <summary>Optional. UTC DateTime when the activityHistoryItem (activity session) was last understood as active or finished - if null, activityHistoryItem status should be Ongoing.</summary>
2430 public DateTimeOffset ? LastActiveDateTime { get ; set ; }
2531 /// <summary>Set by the server. DateTime in UTC when the object was modified on the server.</summary>
2632 public DateTimeOffset ? LastModifiedDateTime { get ; set ; }
27- /// <summary>Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.</summary>
33+ /// <summary>Required. UTC DateTime when the activityHistoryItem (activity session) was started. Required for timeline history.</summary>
2834 public DateTimeOffset ? StartedDateTime { get ; set ; }
2935 /// <summary>The status property</summary>
30- public ApiSdk . Models . Status ? Status { get ; set ; }
36+ public global :: ApiSdk . Models . Status ? Status { get ; set ; }
3137 /// <summary>Optional. The timezone in which the user's device used to generate the activity was located at activity creation time. Values supplied as Olson IDs in order to support cross-platform representation.</summary>
3238#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
3339#nullable enable
@@ -39,43 +45,50 @@ public class ActivityHistoryItem : Entity, IParsable {
3945 /// <summary>
4046 /// Creates a new instance of the appropriate class based on discriminator value
4147 /// </summary>
48+ /// <returns>A <see cref="global::ApiSdk.Models.ActivityHistoryItem"/></returns>
4249 /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
43- public static new ActivityHistoryItem CreateFromDiscriminatorValue ( IParseNode parseNode ) {
50+ public static new global ::ApiSdk . Models . ActivityHistoryItem CreateFromDiscriminatorValue ( IParseNode parseNode )
51+ {
4452 _ = parseNode ?? throw new ArgumentNullException ( nameof ( parseNode ) ) ;
45- return new ActivityHistoryItem ( ) ;
53+ return new global :: ApiSdk . Models . ActivityHistoryItem ( ) ;
4654 }
4755 /// <summary>
4856 /// The deserialization information for the current model
4957 /// </summary>
50- public new IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( ) {
51- return new Dictionary < string , Action < IParseNode > > ( base . GetFieldDeserializers ( ) ) {
52- { "activeDurationSeconds" , n => { ActiveDurationSeconds = n . GetIntValue ( ) ; } } ,
53- { "activity" , n => { Activity = n . GetObjectValue < UserActivity > ( UserActivity . CreateFromDiscriminatorValue ) ; } } ,
54- { "createdDateTime" , n => { CreatedDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
55- { "expirationDateTime" , n => { ExpirationDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
56- { "lastActiveDateTime" , n => { LastActiveDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
57- { "lastModifiedDateTime" , n => { LastModifiedDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
58- { "startedDateTime" , n => { StartedDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
59- { "status" , n => { Status = n . GetEnumValue < Status > ( ) ; } } ,
60- { "userTimezone" , n => { UserTimezone = n . GetStringValue ( ) ; } } ,
58+ /// <returns>A IDictionary<string, Action<IParseNode>></returns>
59+ public override IDictionary < string , Action < IParseNode > > GetFieldDeserializers ( )
60+ {
61+ return new Dictionary < string , Action < IParseNode > > ( base . GetFieldDeserializers ( ) )
62+ {
63+ { "activeDurationSeconds" , n => { ActiveDurationSeconds = n . GetIntValue ( ) ; } } ,
64+ { "activity" , n => { Activity = n . GetObjectValue < global ::ApiSdk . Models . UserActivity > ( global ::ApiSdk . Models . UserActivity . CreateFromDiscriminatorValue ) ; } } ,
65+ { "createdDateTime" , n => { CreatedDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
66+ { "expirationDateTime" , n => { ExpirationDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
67+ { "lastActiveDateTime" , n => { LastActiveDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
68+ { "lastModifiedDateTime" , n => { LastModifiedDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
69+ { "startedDateTime" , n => { StartedDateTime = n . GetDateTimeOffsetValue ( ) ; } } ,
70+ { "status" , n => { Status = n . GetEnumValue < global ::ApiSdk . Models . Status > ( ) ; } } ,
71+ { "userTimezone" , n => { UserTimezone = n . GetStringValue ( ) ; } } ,
6172 } ;
6273 }
6374 /// <summary>
6475 /// Serializes information the current object
6576 /// </summary>
6677 /// <param name="writer">Serialization writer to use to serialize this model</param>
67- public new void Serialize ( ISerializationWriter writer ) {
78+ public override void Serialize ( ISerializationWriter writer )
79+ {
6880 _ = writer ?? throw new ArgumentNullException ( nameof ( writer ) ) ;
6981 base . Serialize ( writer ) ;
7082 writer . WriteIntValue ( "activeDurationSeconds" , ActiveDurationSeconds ) ;
71- writer . WriteObjectValue < UserActivity > ( "activity" , Activity ) ;
83+ writer . WriteObjectValue < global :: ApiSdk . Models . UserActivity > ( "activity" , Activity ) ;
7284 writer . WriteDateTimeOffsetValue ( "createdDateTime" , CreatedDateTime ) ;
7385 writer . WriteDateTimeOffsetValue ( "expirationDateTime" , ExpirationDateTime ) ;
7486 writer . WriteDateTimeOffsetValue ( "lastActiveDateTime" , LastActiveDateTime ) ;
7587 writer . WriteDateTimeOffsetValue ( "lastModifiedDateTime" , LastModifiedDateTime ) ;
7688 writer . WriteDateTimeOffsetValue ( "startedDateTime" , StartedDateTime ) ;
77- writer . WriteEnumValue < Status > ( "status" , Status ) ;
89+ writer . WriteEnumValue < global :: ApiSdk . Models . Status > ( "status" , Status ) ;
7890 writer . WriteStringValue ( "userTimezone" , UserTimezone ) ;
7991 }
8092 }
8193}
94+ #pragma warning restore CS0618
0 commit comments