A2uiClientEventMessage


public final class A2uiClientEventMessage implements A2uiClientToServerMessage


Represents a client event message to be sent to the server.

Summary

Public constructors

A2uiClientEventMessage(
    @NonNull String type,
    @NonNull String surfaceId,
    @NonNull String componentId,
    long timestamp,
    @NonNull Map<@NonNull StringObject> context,
    A2uiClientDataModel clientDataModel
)

Public methods

boolean
equals(Object other)
final A2uiClientDataModel

An optional snapshot of active client data models to be synchronized with the server alongside this event.

final @NonNull String

The unique identifier of the component that was interacted with.

final @NonNull Map<@NonNull StringObject>

A map containing custom properties and metadata associated with this action.

final @NonNull String

The unique identifier of the surface where the action occurred.

final long

The timestamp of when the action occurred, represented as milliseconds since the epoch.

final @NonNull String

The type of the action performed (e.g., "click", "swipe").

int
@NonNull String

Public constructors

A2uiClientEventMessage

public A2uiClientEventMessage(
    @NonNull String type,
    @NonNull String surfaceId,
    @NonNull String componentId,
    long timestamp,
    @NonNull Map<@NonNull StringObject> context,
    A2uiClientDataModel clientDataModel
)

Public methods

equals

public boolean equals(Object other)

getClientDataModel

Added in 1.0.0-alpha01
public final A2uiClientDataModel getClientDataModel()

An optional snapshot of active client data models to be synchronized with the server alongside this event.

getComponentId

Added in 1.0.0-alpha01
public final @NonNull String getComponentId()

The unique identifier of the component that was interacted with.

getContext

Added in 1.0.0-alpha01
public final @NonNull Map<@NonNull StringObjectgetContext()

A map containing custom properties and metadata associated with this action.

getSurfaceId

Added in 1.0.0-alpha01
public final @NonNull String getSurfaceId()

The unique identifier of the surface where the action occurred.

getTimestamp

Added in 1.0.0-alpha01
public final long getTimestamp()

The timestamp of when the action occurred, represented as milliseconds since the epoch.

getType

Added in 1.0.0-alpha01
public final @NonNull String getType()

The type of the action performed (e.g., "click", "swipe").

hashCode

public int hashCode()

toString

public @NonNull String toString()