Class SessionMember
Member in a player session
Namespace: Unity.PSN.PS5.Sessions
Syntax
public class SessionMember
Fields
InvalidAccountId
The default account id representing an invalid user
Declaration
public const ulong InvalidAccountId = 0UL
Field Value
| Type | Description |
|---|---|
| UInt64 |
InvalidUserId
The default user id representing an invalid user
Declaration
public const int InvalidUserId = -1
Field Value
| Type | Description |
|---|---|
| Int32 |
Properties
AccountId
The account id of the session member or InvalidAccountId if not set
Declaration
public ulong AccountId { get; }
Property Value
| Type | Description |
|---|---|
| UInt64 |
CustomData1
The custom data for the member
Declaration
public byte[] CustomData1 { get; }
Property Value
| Type | Description |
|---|---|
| Byte[] |
IsLeader
Is the member the leader of a session
Declaration
public bool IsLeader { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsLocal
Is the member a local player
Declaration
public bool IsLocal { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsReserved
Game Session join status of a member. Joined state or Reserved state. Only valid for members in a game session.
Declaration
public bool IsReserved { get; set; }
Property Value
| Type | Description |
|---|---|
| Boolean |
IsSpectator
Is the member a spectator. If false then they are a player
Declaration
public bool IsSpectator { get; }
Property Value
| Type | Description |
|---|---|
| Boolean |
JoinTimestamp
Date and time when the member joined the session
Declaration
public DateTime JoinTimestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTime |
OnlineId
The online id of the member
Declaration
public string OnlineId { get; }
Property Value
| Type | Description |
|---|---|
| String |
Platform
The platform of the member.
Declaration
public SessionPlatforms Platform { get; }
Property Value
| Type | Description |
|---|---|
| SessionPlatforms |
UserId
The user id of the session member if they are local to the PlayStation system or InvalidUserId
Declaration
public int UserId { get; }
Property Value
| Type | Description |
|---|---|
| Int32 |