google_api_games v0.6.0 GoogleApi.Games.V1.Model.RoomP2PStatus View Source

This is a JSON template for an update on the status of a peer in a room.

Attributes

  • connectionSetupLatencyMillis (type: integer(), default: nil) - The amount of time in milliseconds it took to establish connections with this peer.
  • error (type: String.t, default: nil) - The error code in event of a failure. Possible values are:

    • "P2P_FAILED" - The client failed to establish a P2P connection with the peer.
    • "PRESENCE_FAILED" - The client failed to register to receive P2P connections.
    • "RELAY_SERVER_FAILED" - The client received an error when trying to use the relay server to establish a P2P connection with the peer.
  • error_reason (type: String.t, default: nil) - More detailed diagnostic message returned in event of a failure.
  • kind (type: String.t, default: games#roomP2PStatus) - Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatus.
  • participantId (type: String.t, default: nil) - The ID of the participant.
  • status (type: String.t, default: nil) - The status of the peer in the room. Possible values are:

    • "CONNECTION_ESTABLISHED" - The client established a P2P connection with the peer.
    • "CONNECTION_FAILED" - The client failed to establish directed presence with the peer.
  • unreliableRoundtripLatencyMillis (type: integer(), default: nil) - The amount of time in milliseconds it took to send packets back and forth on the unreliable channel with this peer.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Link to this type

t()

View Source
t() :: %GoogleApi.Games.V1.Model.RoomP2PStatus{
  connectionSetupLatencyMillis: integer(),
  error: String.t(),
  error_reason: String.t(),
  kind: String.t(),
  participantId: String.t(),
  status: String.t(),
  unreliableRoundtripLatencyMillis: integer()
}

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.