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): StreamTriggerOutput

Parameters

NameType
dataStreamTriggerOutputish

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

Deprecated

This method will be removed soon. To format the value, use one of the properties.

Returns

StreamTriggerOutputJSON

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)

Parameters

NameType
dataStreamTriggerOutputInput

Accessors

name

get name(): string

Returns

string


value

get value(): string

Returns

string