Casper.Network.SDK
Show / Hide Table of Contents

Class SSEvent

An occurrence of a server side event delivered via callback method

Inheritance
object
SSEvent
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Casper.Network.SDK.SSE
Assembly: Casper.Network.SDK.dll
Syntax
public class SSEvent

Properties

| Edit this page View Source

EventType

The type of the event.

Declaration
public EventType EventType { get; init; }
Property Value
Type Description
EventType
| Edit this page View Source

Id

The incremental id number of the event from the node.

Declaration
public int Id { get; init; }
Property Value
Type Description
int
| Edit this page View Source

Result

JSON object before parsing. Call the Parse<T>() method to get a typed object with the event.

Declaration
public JsonElement Result { get; init; }
Property Value
Type Description
JsonElement

Methods

| Edit this page View Source

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.

  • Edit this page
  • View Source
In this article
Back to top Maintained by MAKE Technology LLC