Reconnection information storage. Internally runs Set(RealtimeClient, TimeSpan) during MatchmakingExtensions.ConnectToRoomAsync(RealtimeClient, MatchmakingArguments).
More...
Reconnection information storage. Internally runs Set(RealtimeClient, TimeSpan) during MatchmakingExtensions.ConnectToRoomAsync(RealtimeClient, MatchmakingArguments).
◆ Set() [1/2]
| virtual void Photon.Realtime.MatchmakingReconnectInformation.Set |
( |
RealtimeClient |
client | ) |
|
|
inlinevirtual |
◆ Set() [2/2]
| void Photon.Realtime.MatchmakingReconnectInformation.Set |
( |
RealtimeClient |
client, |
|
|
TimeSpan |
timeSpan |
|
) |
| |
|
inline |
Update all info.
- Parameters
-
| client | Photon client object. |
| timeSpan | When is this data considered be too old to use. |
◆ ToString()
| override string Photon.Realtime.MatchmakingReconnectInformation.ToString |
( |
| ) |
|
|
inline |
Print readable information about its fields.
- Returns
◆ Room
| string Photon.Realtime.MatchmakingReconnectInformation.Room |
The room name the client was connected to.
◆ Region
| string Photon.Realtime.MatchmakingReconnectInformation.Region |
The region the client was connected to.
◆ AppVersion
| string Photon.Realtime.MatchmakingReconnectInformation.AppVersion |
The app version used in the former connection.
◆ UserId
| string Photon.Realtime.MatchmakingReconnectInformation.UserId |
The user id the client used to connect to the server.
◆ TimeoutInTicks
| long Photon.Realtime.MatchmakingReconnectInformation.TimeoutInTicks |
The timeout after this information is considered to useable.
◆ DefaultTimeout
| int Photon.Realtime.MatchmakingReconnectInformation.DefaultTimeout = 20 |
◆ HasTimedOut
| bool Photon.Realtime.MatchmakingReconnectInformation.HasTimedOut => Timeout < DateTime.UtcNow |
Checks the timeout and returns false when it ran out.
◆ Timeout
| DateTime Photon.Realtime.MatchmakingReconnectInformation.Timeout |
|
getset |