|
3 | 3 | // ------------------------------------------------------------------------------ |
4 | 4 |
|
5 | 5 | package com.microsoft.graph.models.extensions; |
| 6 | +import com.microsoft.graph.concurrency.*; |
| 7 | +import com.microsoft.graph.core.*; |
| 8 | +import com.microsoft.graph.http.*; |
| 9 | +import com.microsoft.graph.options.*; |
| 10 | +import com.microsoft.graph.serializer.*; |
| 11 | +import java.util.Arrays; |
| 12 | +import java.util.EnumSet; |
| 13 | +import com.microsoft.graph.models.generated.Status; |
| 14 | +import com.microsoft.graph.models.extensions.UserActivity; |
| 15 | +import com.microsoft.graph.models.extensions.Entity; |
6 | 16 |
|
7 | | -import com.microsoft.graph.models.generated.BaseActivityHistoryItem; |
| 17 | + |
| 18 | +import com.google.gson.JsonObject; |
| 19 | +import com.google.gson.JsonElement; |
| 20 | +import com.google.gson.annotations.*; |
| 21 | +import java.util.HashMap; |
| 22 | +import java.util.Map; |
| 23 | + |
| 24 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
8 | 25 |
|
9 | 26 | /** |
10 | 27 | * The class for the Activity History Item. |
11 | 28 | */ |
12 | | -public class ActivityHistoryItem extends BaseActivityHistoryItem { |
| 29 | +public class ActivityHistoryItem extends Entity implements IJsonBackedObject { |
| 30 | + |
| 31 | + |
| 32 | + /** |
| 33 | + * The Status. |
| 34 | + * Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored. |
| 35 | + */ |
| 36 | + @SerializedName("status") |
| 37 | + @Expose |
| 38 | + public Status status; |
| 39 | + |
| 40 | + /** |
| 41 | + * The Active Duration Seconds. |
| 42 | + * Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime. |
| 43 | + */ |
| 44 | + @SerializedName("activeDurationSeconds") |
| 45 | + @Expose |
| 46 | + public Integer activeDurationSeconds; |
| 47 | + |
| 48 | + /** |
| 49 | + * The Created Date Time. |
| 50 | + * Set by the server. DateTime in UTC when the object was created on the server. |
| 51 | + */ |
| 52 | + @SerializedName("createdDateTime") |
| 53 | + @Expose |
| 54 | + public java.util.Calendar createdDateTime; |
| 55 | + |
| 56 | + /** |
| 57 | + * The Last Active Date Time. |
| 58 | + * Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing. |
| 59 | + */ |
| 60 | + @SerializedName("lastActiveDateTime") |
| 61 | + @Expose |
| 62 | + public java.util.Calendar lastActiveDateTime; |
| 63 | + |
| 64 | + /** |
| 65 | + * The Last Modified Date Time. |
| 66 | + * Set by the server. DateTime in UTC when the object was modified on the server. |
| 67 | + */ |
| 68 | + @SerializedName("lastModifiedDateTime") |
| 69 | + @Expose |
| 70 | + public java.util.Calendar lastModifiedDateTime; |
| 71 | + |
| 72 | + /** |
| 73 | + * The Expiration Date Time. |
| 74 | + * Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client. |
| 75 | + */ |
| 76 | + @SerializedName("expirationDateTime") |
| 77 | + @Expose |
| 78 | + public java.util.Calendar expirationDateTime; |
| 79 | + |
| 80 | + /** |
| 81 | + * The Started Date Time. |
| 82 | + * Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history. |
| 83 | + */ |
| 84 | + @SerializedName("startedDateTime") |
| 85 | + @Expose |
| 86 | + public java.util.Calendar startedDateTime; |
| 87 | + |
| 88 | + /** |
| 89 | + * The User Timezone. |
| 90 | + * 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. |
| 91 | + */ |
| 92 | + @SerializedName("userTimezone") |
| 93 | + @Expose |
| 94 | + public String userTimezone; |
| 95 | + |
| 96 | + /** |
| 97 | + * The Activity. |
| 98 | + * Optional. NavigationProperty/Containment; navigation property to the associated activity. |
| 99 | + */ |
| 100 | + @SerializedName("activity") |
| 101 | + @Expose |
| 102 | + public UserActivity activity; |
| 103 | + |
| 104 | + |
| 105 | + /** |
| 106 | + * The raw representation of this class |
| 107 | + */ |
| 108 | + private JsonObject rawObject; |
| 109 | + |
| 110 | + /** |
| 111 | + * The serializer |
| 112 | + */ |
| 113 | + private ISerializer serializer; |
| 114 | + |
| 115 | + /** |
| 116 | + * Gets the raw representation of this class |
| 117 | + * |
| 118 | + * @return the raw representation of this class |
| 119 | + */ |
| 120 | + public JsonObject getRawObject() { |
| 121 | + return rawObject; |
| 122 | + } |
| 123 | + |
| 124 | + /** |
| 125 | + * Gets serializer |
| 126 | + * |
| 127 | + * @return the serializer |
| 128 | + */ |
| 129 | + protected ISerializer getSerializer() { |
| 130 | + return serializer; |
| 131 | + } |
| 132 | + |
| 133 | + /** |
| 134 | + * Sets the raw JSON object |
| 135 | + * |
| 136 | + * @param serializer the serializer |
| 137 | + * @param json the JSON object to set this object to |
| 138 | + */ |
| 139 | + public void setRawObject(final ISerializer serializer, final JsonObject json) { |
| 140 | + this.serializer = serializer; |
| 141 | + rawObject = json; |
13 | 142 |
|
| 143 | + } |
14 | 144 | } |
0 commit comments