Class ResponseEventBase
Base class for all response stream events.
Inheritance
ResponseEventBase
Inherited Members
Namespace: Glitch9.AIDevKit.Responses
Assembly: Glitch9.AIDevKit.dll
Syntax
public abstract class ResponseEventBase : ISequencableEvent, IEvent
Properties
| Edit this page View SourceSequenceNumber
The sequence number for this event.
Declaration
[JsonProperty("sequence_number")]
public int SequenceNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Type
The type of the event.
Declaration
[JsonProperty("type")]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
| Edit this page View SourceBuildSequenceKey()
Returns the logical ordering key for this event. If null/empty -> sequencer should treat it as "no sequencing key".
Declaration
protected virtual string BuildSequenceKey()
Returns
| Type | Description |
|---|---|
| string |
GetSequenceInfo()
Declaration
public StreamSequenceInfo GetSequenceInfo()
Returns
| Type | Description |
|---|---|
| StreamSequenceInfo |
IsValid()
Declaration
public bool IsValid()
Returns
| Type | Description |
|---|---|
| bool |
ResolveDone()
Determines whether this event represents a logical completion for its key stream.
Declaration
protected virtual bool ResolveDone()
Returns
| Type | Description |
|---|---|
| bool |