Class UserPresence
UserPresence
Inherited Members
Namespace: Unity.Services.Apis.Friends
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "UserPresence")]
[Preserve]
public class UserPresence
Constructors
UserPresence(AvailabilityEnum, object, DateTime)
Initializes a new instance of the User
Declaration
[Preserve]
public UserPresence(UserPresence.AvailabilityEnum availability = (UserPresence.AvailabilityEnum)0, object activity = null, DateTime lastSeen = default)
Parameters
Type | Name | Description |
---|---|---|
User |
availability | The current availability of the user. (required). |
object | activity | The current activity data of the user.. |
Date |
lastSeen | The last time the user was seen in UTC. This property exists if the user's availability is |
Properties
Activity
The current activity data of the user.
Declaration
[DataMember(Name = "activity", EmitDefaultValue = false)]
[Preserve]
public object Activity { get; set; }
Property Value
Type | Description |
---|---|
object | The current activity data of the user. |
Availability
The current availability of the user.
Declaration
[DataMember(Name = "availability", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public UserPresence.AvailabilityEnum Availability { get; set; }
Property Value
Type | Description |
---|---|
User |
The current availability of the user. |
LastSeen
The last time the user was seen in UTC. This property exists if the user's availability is OFFLINE
.
Declaration
[DataMember(Name = "lastSeen", EmitDefaultValue = false)]
[Preserve]
public DateTime LastSeen { get; set; }
Property Value
Type | Description |
---|---|
Date |
The last time the user was seen in UTC. This property exists if the user's availability is |