PingEvent Model
PingEvent Model documentation for Java SDK
PingEvent
Streaming event from a ping session
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| result | PingResult | [optional] | |
| summary | PingSummary | [optional] | |
| notice | PingNotice | [optional] |
Usage Example
import ai.pairsys.goodmem.client.model.*;
// Reading from a streaming response (most common usage)
// PingEvent is deserialized automatically from the stream
Object actual = event.getActualInstance();
if (actual instanceof PingEventOneOf) {
PingResult result = ((PingEventOneOf) actual).getResult();
} else if (actual instanceof PingEventOneOf1) {
PingSummary summary = ((PingEventOneOf1) actual).getSummary();
} else if (actual instanceof PingEventOneOf2) {
PingNotice notice = ((PingEventOneOf2) actual).getNotice();
}