Class PresenceRequest
PresenceRequest
Inherited Members
Namespace: Unity.Services.Apis.Friends
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "PresenceRequest")]
[Preserve]
public class PresenceRequest
Constructors
PresenceRequest(AvailabilityEnum, object)
Initializes a new instance of the Presence
Declaration
[Preserve]
public PresenceRequest(PresenceRequest.AvailabilityEnum availability = (PresenceRequest.AvailabilityEnum)0, object activity = null)
Parameters
Type | Name | Description |
---|---|---|
Presence |
availability | The current availability of the user. (required). |
object | activity | The current activity data of the user. The maximum for the activity object is 10 kilobytes.. |
Properties
Activity
The current activity data of the user. The maximum for the activity object is 10 kilobytes.
Declaration
[DataMember(Name = "activity", EmitDefaultValue = false)]
[Preserve]
public object Activity { get; set; }
Property Value
Type | Description |
---|---|
object | The current activity data of the user. The maximum for the activity object is 10 kilobytes. |
Availability
The current availability of the user.
Declaration
[DataMember(Name = "availability", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public PresenceRequest.AvailabilityEnum Availability { get; set; }
Property Value
Type | Description |
---|---|
Presence |
The current availability of the user. |