Class SSEvent
An occurrence of a server side event delivered via callback method
Inheritance
System.Object
SSEvent
Namespace: Casper.Network.SDK.SSE
Assembly: Casper.Network.SDK.dll
Syntax
public class SSEvent : object
Properties
EventType
The type of the event.
Declaration
public EventType EventType { get; set; }
Property Value
| Type | Description |
|---|---|
| EventType |
Id
The incremental id number of the event from the node.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Result
JSON object before parsing. Call the Parse<T>() method to get a typed object with the event.
Declaration
public JsonElement Result { get; set; }
Property Value
| Type | Description |
|---|---|
| JsonElement |
Methods
Parse<T>()
Parses the json event and returns a typed object with the data. If T is not the correct type for the event this method throws an exception.
Declaration
public T Parse<T>()
Returns
| Type | Description |
|---|---|
| T |
Type Parameters
| Name | Description |
|---|---|
| T | One of BlockAdded, DeployAccepted, DeployExpired, DeployProcessed, Fault, FinalitySignature or Step. |