C0FPacketConfirmTransaction

A packet sent by the client to confirm a transaction.

Extends

Constructors

Constructor

new C0FPacketConfirmTransaction(windowId, actionNumber, accepted): C0FPacketConfirmTransaction

Creates a new C0FPacketConfirmTransaction packet

Parameters

windowId

number

windowId - The window ID

actionNumber

number

actionNumber - The action number to confirm

accepted

boolean

accepted - Whether the transaction was accepted

Returns

C0FPacketConfirmTransaction

Overrides

Packet.constructor

Methods

getPacketID()

getPacketID(): string

Get the ID of the packet.

Returns

string

The ID of the packet.

Inherited from

Packet.getPacketID


getUid()

getUid(): number

Gets the unique ID of this transaction

Returns

number

The transaction ID


getWindowId()

getWindowId(): number

Gets the window ID associated with this transaction

Returns

number

The window ID


isAccepted()

isAccepted(): boolean

Checks if the transaction was accepted

Returns

boolean

True if accepted, false otherwise


setAccepted()

setAccepted(accepted): void

Sets whether this transaction is accepted

Parameters

accepted

boolean

accepted - True to accept, false to reject

Returns

void


setUid()

setUid(uid): void

Sets the unique ID for this transaction

Parameters

uid

number

uid - The new transaction ID

Returns

void


setWindowId()

setWindowId(windowId): void

Sets the window ID for this transaction

Parameters

windowId

number

windowId - The new window ID

Returns

void

Last updated