EventCandidate

class EventCandidate : StarterCandidate


Represents automation candidate nodes corresponding to an event. These can be used in starters

Summary

Public constructors

EventCandidate(
    entity: HasId,
    types: List<DeviceTypeFactory<DeviceType>>,
    trait: TraitFactory<Trait>,
    fields: Map<StringEventFieldDetails>,
    fieldDetailsMap: Map<FieldFieldDetails>,
    unsupportedReasons: List<UnsupportedCandidateReason>,
    eventId: String,
    eventFactory: EventFactory<Event>
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

open HasId
EventFactory<Event>
String

This property is deprecated. Use eventFactory instead

open Map<FieldFieldDetails>
open Map<StringEventFieldDetails>

This property is deprecated. Use fieldDetailsMap instead

open TraitFactory<Trait>
open List<DeviceTypeFactory<DeviceType>>
open List<UnsupportedCandidateReason>

Public constructors

EventCandidate

EventCandidate(
    entity: HasId,
    types: List<DeviceTypeFactory<DeviceType>>,
    trait: TraitFactory<Trait>,
    fields: Map<StringEventFieldDetails>,
    fieldDetailsMap: Map<FieldFieldDetails> = emptyMap(),
    unsupportedReasons: List<UnsupportedCandidateReason> = emptyList(),
    eventId: String,
    eventFactory: EventFactory<Event>
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

entity

open val entityHasId

eventFactory

val eventFactoryEventFactory<Event>

eventId

val eventIdString

fieldDetailsMap

open val fieldDetailsMapMap<FieldFieldDetails>

fields

open val fieldsMap<StringEventFieldDetails>

trait

open val traitTraitFactory<Trait>

types

open val typesList<DeviceTypeFactory<DeviceType>>

unsupportedReasons

open val unsupportedReasonsList<UnsupportedCandidateReason>