Skip to content

CrowdControlBlock ​

The base class for CrowdControl communication blocks.

Kind: Abstract class

Namespace: CrowdControl.Common

Inheritance: IEquatable\<CrowdControlBlock\>

Public Member Functions

void

InvokeSent()

Invokes the CrowdControl.Common.CrowdControlBlock.Sent event.

bool

Equals(CrowdControlBlock other)

virtual override

bool

Equals(object obj)

virtual override

int

GetHashCode()

Public Static Functions

CrowdControlBlock

Deserialize(string json)

Deserializes a JSON string into a CrowdControl.Common.CrowdControlBlock instance.

CrowdControlBlock

Deserialize(string json, BlockType type)

Deserializes a JSON string into a CrowdControl.Common.CrowdControlBlock instance.

CrowdControlBlock

Deserialize(JToken token)

Deserializes a JSON string into a CrowdControl.Common.CrowdControlBlock instance.

CrowdControlBlock

Deserialize(JToken token, BlockType type)

Deserializes a JSON string into a CrowdControl.Common.CrowdControlBlock instance.

BlockType

GetBlockType(Type type)

Public Attributes

Guid

ID

The block identifier. Should be vaguely unique most of the time.

DateTimeOffset

Stamp

The block creation timestamp.

BlockType

BlockType

The block type.

Func

IDSource

The default ID source for blocks. This is a GUID generator.

Events

Action

Sent

Called when a block is sent to the server.