abstract struct ACP::Protocol::SessionUpdate

Overview

Abstract base for all session update types. Deserialization is dispatched via the "sessionUpdate" JSON field, which is the ACP spec-standard discriminator.

The client dispatcher ensures backward compatibility by normalizing the legacy "type" field to "sessionUpdate" before parsing.

Included Modules

Direct Known Subclasses

Defined in:

acp/protocol/updates.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def session_update : String #

The discriminator field. In the ACP spec this is "sessionUpdate".


[View source]
def session_update=(session_update : String) #

The discriminator field. In the ACP spec this is "sessionUpdate".


[View source]
def type : String #

Backward-compatible alias: returns the session update type string.


[View source]