Class Presence
Presence model
Inherited Members
Namespace: Unity.Services.Friends.Models
Assembly: Unity.Services.Friends.dll
Syntax
public class Presence
Properties
Availability
The availability of the user
Declaration
public Availability Availability { get; }
Property Value
| Type | Description |
|---|---|
| Availability |
LastSeen
The last seen time of the user in UTC
Declaration
public DateTime LastSeen { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
Methods
GetActivity<T>()
Getter for the current user's activity
Declaration
public T GetActivity<T>() where T : new()
Returns
| Type | Description |
|---|---|
| T | The activity of the user |
Type Parameters
| Name | Description |
|---|---|
| T |