Interface IFriendsPresenceApi
Represents a collection of functions to interact with the API endpoints
Namespace: Unity.Services.Apis.Friends
Assembly: Unity.Services.Apis.dll
Syntax
public interface IFriendsPresenceApi : IApiAccessor
Methods
GetPresence(string, CancellationToken)
Get presence for a user.
Declaration
ApiOperation<UserPresence> GetPresence(string userId, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
string | userId | The userID. |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |
SetPresence(PresenceRequest, CancellationToken)
Set presence for a user.
Declaration
ApiOperation<UserPresence> SetPresence(PresenceRequest presenceRequest = null, CancellationToken cancellationToken = default)
Parameters
Type | Name | Description |
---|---|---|
Presence |
presenceRequest | (optional) |
Cancellation |
cancellationToken | Cancellation Token to cancel the request. |
Returns
Type | Description |
---|---|
Api |
The operation |