Show / Hide Table of Contents

Class DisconnectedEvent

Event occurring when bot gets disconnected from server.

Inheritance
object
ConnectionEvent
DisconnectedEvent
Implements
IEvent
Inherited Members
ConnectionEvent.ServerUri
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Robocode.TankRoyale.BotApi.Events
Assembly: api.dll
Syntax
public sealed class DisconnectedEvent : ConnectionEvent, IEvent

Constructors

| Edit this page View Source

DisconnectedEvent(Uri, bool, int?, string)

Initializes a new instance of the DisconnectedEvent class.

Declaration
[JsonConstructor]
public DisconnectedEvent(Uri serverUri, bool remote, int? statusCode, string reason)
Parameters
Type Name Description
Uri serverUri

URI of the server.

bool remote

Indication if closing of the connection was initiated by the remote host.

int? statusCode

Is a status code that indicates the reason for closing the connection.

string reason

Is a message with the reason for closing the connection.

Properties

| Edit this page View Source

Reason

Message with the reason for closing the connection. Might be null.

Declaration
public string Reason { get; }
Property Value
Type Description
string
| Edit this page View Source

Remote

Indication if closing of the connection was initiated by the remote host.

Declaration
public bool Remote { get; }
Property Value
Type Description
bool
| Edit this page View Source

StatusCode

Status code that indicates the reason for closing the connection. Might be null.

Declaration
public int? StatusCode { get; }
Property Value
Type Description
int?

Implements

IEvent
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX