Package com.microsoft.graph.models
Class UserActivity
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.UserActivity
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
@Generated("com.microsoft.kiota")
public class UserActivity
extends Entity
implements com.microsoft.kiota.serialization.Parsable
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UserActivity
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the activationUrl property value.Gets the activitySourceHost property value.Gets the appActivityId property value.Gets the appDisplayName property value.com.microsoft.kiota.serialization.UntypedNode
Gets the contentInfo property value.Gets the contentUrl property value.Gets the createdDateTime property value.Gets the expirationDateTime property value.Gets the fallbackUrl property value.The deserialization information for the current modelGets the historyItems property value.Gets the lastModifiedDateTime property value.Gets the status property value.Gets the userTimezone property value.Gets the visualElements property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setActivationUrl
(String value) Sets the activationUrl property value.void
setActivitySourceHost
(String value) Sets the activitySourceHost property value.void
setAppActivityId
(String value) Sets the appActivityId property value.void
setAppDisplayName
(String value) Sets the appDisplayName property value.void
setContentInfo
(com.microsoft.kiota.serialization.UntypedNode value) Sets the contentInfo property value.void
setContentUrl
(String value) Sets the contentUrl property value.void
setCreatedDateTime
(OffsetDateTime value) Sets the createdDateTime property value.void
Sets the expirationDateTime property value.void
setFallbackUrl
(String value) Sets the fallbackUrl property value.void
setHistoryItems
(List<ActivityHistoryItem> value) Sets the historyItems property value.void
Sets the lastModifiedDateTime property value.void
Sets the status property value.void
setUserTimezone
(String value) Sets the userTimezone property value.void
setVisualElements
(VisualInfo value) Sets the visualElements property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
UserActivity
public UserActivity()Instantiates a newUserActivity
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static UserActivity createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator value- Parameters:
parseNode
- The parse node to use to read the discriminator value and create the object- Returns:
- a
UserActivity
-
getActivationUrl
Gets the activationUrl property value. Required. URL used to launch the activity in the best native experience represented by the appId. Might launch a web-based app if no native app exists.- Returns:
- a
String
-
getActivitySourceHost
Gets the activitySourceHost property value. Required. URL for the domain representing the cross-platform identity mapping for the app. Mapping is stored either as a JSON file hosted on the domain or configurable via Windows Dev Center. The JSON file is named cross-platform-app-identifiers and is hosted at root of your HTTPS domain, either at the top level domain or include a sub domain. For example: https://contoso.com or https://myapp.contoso.com but NOT https://myapp.contoso.com/somepath. You must have a unique file and domain (or sub domain) per cross-platform app identity. For example, a separate file and domain is needed for Word vs. PowerPoint.- Returns:
- a
String
-
getAppActivityId
Gets the appActivityId property value. Required. The unique activity ID in the context of the app - supplied by caller and immutable thereafter.- Returns:
- a
String
-
getAppDisplayName
Gets the appDisplayName property value. Optional. Short text description of the app used to generate the activity for use in cases when the app is not installed on the users local device.- Returns:
- a
String
-
getContentInfo
@Nullable public com.microsoft.kiota.serialization.UntypedNode getContentInfo()Gets the contentInfo property value. Optional. A custom piece of data - JSON-LD extensible description of content according to schema.org syntax.- Returns:
- a
UntypedNode
-
getContentUrl
Gets the contentUrl property value. Optional. Used in the event the content can be rendered outside of a native or web-based app experience (for example, a pointer to an item in an RSS feed).- Returns:
- a
String
-
getCreatedDateTime
Gets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server.- Returns:
- a
OffsetDateTime
-
getExpirationDateTime
Gets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expired on the server.- Returns:
- a
OffsetDateTime
-
getFallbackUrl
Gets the fallbackUrl property value. Optional. URL used to launch the activity in a web-based app, if available.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getHistoryItems
Gets the historyItems property value. Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.- Returns:
- a
List<ActivityHistoryItem>
-
getLastModifiedDateTime
Gets the lastModifiedDateTime property value. Set by the server. DateTime in UTC when the object was modified on the server.- Returns:
- a
OffsetDateTime
-
getStatus
Gets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.- Returns:
- a
Status
-
getUserTimezone
Gets the userTimezone property value. 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.- Returns:
- a
String
-
getVisualElements
Gets the visualElements property value. The visualElements property- Returns:
- a
VisualInfo
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setActivationUrl
Sets the activationUrl property value. Required. URL used to launch the activity in the best native experience represented by the appId. Might launch a web-based app if no native app exists.- Parameters:
value
- Value to set for the activationUrl property.
-
setActivitySourceHost
Sets the activitySourceHost property value. Required. URL for the domain representing the cross-platform identity mapping for the app. Mapping is stored either as a JSON file hosted on the domain or configurable via Windows Dev Center. The JSON file is named cross-platform-app-identifiers and is hosted at root of your HTTPS domain, either at the top level domain or include a sub domain. For example: https://contoso.com or https://myapp.contoso.com but NOT https://myapp.contoso.com/somepath. You must have a unique file and domain (or sub domain) per cross-platform app identity. For example, a separate file and domain is needed for Word vs. PowerPoint.- Parameters:
value
- Value to set for the activitySourceHost property.
-
setAppActivityId
Sets the appActivityId property value. Required. The unique activity ID in the context of the app - supplied by caller and immutable thereafter.- Parameters:
value
- Value to set for the appActivityId property.
-
setAppDisplayName
Sets the appDisplayName property value. Optional. Short text description of the app used to generate the activity for use in cases when the app is not installed on the users local device.- Parameters:
value
- Value to set for the appDisplayName property.
-
setContentInfo
public void setContentInfo(@Nullable com.microsoft.kiota.serialization.UntypedNode value) Sets the contentInfo property value. Optional. A custom piece of data - JSON-LD extensible description of content according to schema.org syntax.- Parameters:
value
- Value to set for the contentInfo property.
-
setContentUrl
Sets the contentUrl property value. Optional. Used in the event the content can be rendered outside of a native or web-based app experience (for example, a pointer to an item in an RSS feed).- Parameters:
value
- Value to set for the contentUrl property.
-
setCreatedDateTime
Sets the createdDateTime property value. Set by the server. DateTime in UTC when the object was created on the server.- Parameters:
value
- Value to set for the createdDateTime property.
-
setExpirationDateTime
Sets the expirationDateTime property value. Set by the server. DateTime in UTC when the object expired on the server.- Parameters:
value
- Value to set for the expirationDateTime property.
-
setFallbackUrl
Sets the fallbackUrl property value. Optional. URL used to launch the activity in a web-based app, if available.- Parameters:
value
- Value to set for the fallbackUrl property.
-
setHistoryItems
Sets the historyItems property value. Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.- Parameters:
value
- Value to set for the historyItems property.
-
setLastModifiedDateTime
Sets the lastModifiedDateTime property value. Set by the server. DateTime in UTC when the object was modified on the server.- Parameters:
value
- Value to set for the lastModifiedDateTime property.
-
setStatus
Sets the status property value. Set by the server. A status code used to identify valid objects. Values: active, updated, deleted, ignored.- Parameters:
value
- Value to set for the status property.
-
setUserTimezone
Sets the userTimezone property value. 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.- Parameters:
value
- Value to set for the userTimezone property.
-
setVisualElements
Sets the visualElements property value. The visualElements property- Parameters:
value
- Value to set for the visualElements property.
-