Class ActivityHistoryItem

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.ActivityHistoryItem
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject

public class ActivityHistoryItem extends Entity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Activity History Item.
  • Field Details

    • activeDurationSeconds

      @SerializedName(value="activeDurationSeconds", alternate="ActiveDurationSeconds") @Expose @Nullable public Integer activeDurationSeconds
      The Active Duration Seconds. Optional. The duration of active user engagement. if not supplied, this is calculated from the startedDateTime and lastActiveDateTime.
    • createdDateTime

      @SerializedName(value="createdDateTime", alternate="CreatedDateTime") @Expose @Nullable public OffsetDateTime createdDateTime
      The Created Date Time. Set by the server. DateTime in UTC when the object was created on the server.
    • expirationDateTime

      @SerializedName(value="expirationDateTime", alternate="ExpirationDateTime") @Expose @Nullable public OffsetDateTime expirationDateTime
      The Expiration Date Time. Optional. UTC DateTime when the historyItem will undergo hard-delete. Can be set by the client.
    • lastActiveDateTime

      @SerializedName(value="lastActiveDateTime", alternate="LastActiveDateTime") @Expose @Nullable public OffsetDateTime lastActiveDateTime
      The Last Active Date Time. Optional. UTC DateTime when the historyItem (activity session) was last understood as active or finished - if null, historyItem status should be Ongoing.
    • lastModifiedDateTime

      @SerializedName(value="lastModifiedDateTime", alternate="LastModifiedDateTime") @Expose @Nullable public OffsetDateTime lastModifiedDateTime
      The Last Modified Date Time. Set by the server. DateTime in UTC when the object was modified on the server.
    • startedDateTime

      @SerializedName(value="startedDateTime", alternate="StartedDateTime") @Expose @Nullable public OffsetDateTime startedDateTime
      The Started Date Time. Required. UTC DateTime when the historyItem (activity session) was started. Required for timeline history.
    • status

      @SerializedName(value="status", alternate="Status") @Expose @Nullable public Status status
      The Status. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.
    • userTimezone

      @SerializedName(value="userTimezone", alternate="UserTimezone") @Expose @Nullable public String userTimezone
      The User Timezone. 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.
    • activity

      @SerializedName(value="activity", alternate="Activity") @Expose @Nullable public UserActivity activity
      The Activity. Optional. NavigationProperty/Containment; navigation property to the associated activity.
  • Constructor Details

    • ActivityHistoryItem

      public ActivityHistoryItem()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class Entity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to