A2uiClientEventMessage


public final class A2uiClientEventMessage implements A2uiClientToServerMessage

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

Summary

Public constructors

A2uiClientEventMessage

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

Public methods

equals

public boolean equals(Object other)

getClientDataModel

Added in 1.0.0-alpha02
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-alpha02
public final @NonNull String getComponentId()

The unique identifier of the component that was interacted with.

getContext

Added in 1.0.0-alpha02
public final @NonNull Map<@NonNull String, Object> getContext()

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

getSurfaceId

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

The unique identifier of the surface where the action occurred.

getTimestamp

Added in 1.0.0-alpha02
public final long getTimestamp()

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

getType

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

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

hashCode

public int hashCode()

toString

public @NonNull String toString()