Skip to main content

Connection Enums

This page describes the enums used in connection-related functionalities.

ConnectionAction

The ConnectionAction enum defines the possible actions to perform on a connection.

ValueDescription
acceptAccept the connection request.
rejectReject the connection request.

Enum Details

  • accept: Represents an action to accept the connection request.
  • reject: Represents an action to reject the connection request.

Each enum value has a corresponding value property that holds the string representation of the action.

ConnectionType

The ConnectionType enum defines the possible types of connections.

ValueDescription
oneWayA one-way connection request, where only the sender initiates the connection.
twoWayA two-way connection request, where both users agree to the connection.

Enum Details

  • oneWay: Represents a one-way connection request.
  • twoWay: Represents a two-way connection request.

Each enum value has a corresponding value property that holds the string representation of the type.