Skip to main content

Class: StreamTriggerOutput

moralis-monorepo / @moralisweb3/common-streams-utils / StreamTriggerOutput

Class: StreamTriggerOutput

@moralisweb3/common-streams-utils.StreamTriggerOutput

The StreamTrigger class is a representation of a stream trigger that is used by the Moralis Stream API

Implements

  • MoralisDataObject

Table of contents

Methods

Constructors

Accessors

Methods

arrayEquals

Static arrayEquals(valueA, valueB): boolean

Compares two StreamTriggerOutput arrays. It checks a deep equality check of both values, meaning that all the values have to be on both arrays.

Example

 StreamTriggerOutput.arrayEquals(valueA, valueB);

Parameters

NameTypeDescription
valueAStreamTriggerOutputish[]the first StreamTriggerOutputish[] data to compare
valueBStreamTriggerOutputish[]the second StreamTriggerOutputish[] data to compare

Returns

boolean

true if all values are equal, false otherwise


create

Static create(data, core?): StreamTriggerOutput

Parameters

NameType
dataStreamTriggerOutputish
core?Core

Returns

StreamTriggerOutput


equals

Static equals(valueA, valueB): boolean

Compares two StreamTriggerOutput data. It checks a deep equality check of both values.

Example

 StreamTriggerOutput.equals(valueA, valueB);

Parameters

NameTypeDescription
valueAStreamTriggerOutputishthe first StreamTriggerOutputish data to compare
valueBStreamTriggerOutputishthe second StreamTriggerOutputish data to compare

Returns

boolean

true if the values are equal, false otherwise


equals

equals(value): boolean

Compares an StreamTriggerOutputish data to this StreamTriggerOutput instance.

Example

streamTriggerOutput.equals(value);

Parameters

NameTypeDescription
valueStreamTriggerOutputishthe value to compare

Returns

boolean

true if the value is equal to the current instance, false otherwise

Implementation of

MoralisDataObject.equals


format

format(): StreamTriggerOutputJSON

Converts the StreamTriggerOutput instance to a JSON object.

Example

streamTriggerOutput.format()

Returns

StreamTriggerOutputJSON

JSON object of the StreamTriggerOutput instance

Implementation of

MoralisDataObject.format


toJSON

toJSON(): StreamTriggerOutputJSON

Converts the StreamTriggerOutput instance to a JSON object.

Example

streamTriggerOutput.toJSON()

Returns

StreamTriggerOutputJSON

JSON object of the StreamTriggerOutput instance

Implementation of

MoralisDataObject.toJSON

Constructors

constructor

new StreamTriggerOutput(data, core)

Parameters

NameType
dataStreamTriggerOutputInput
coreCore

Accessors

name

get name(): string

Returns

string


value

get value(): string

Returns

string