BlazeFollowEntityType

Represents the type of entity that can be followed.

The entity can be of type Player, Team, Property, or FirstAvailable.

Each type can optionally have a fallback type to be used if the primary type is not available for following. For example, if a Player is not available to follow, the fallback type can be used instead.


sealed class BlazeFollowEntityType {

    /**
     * Represents an entity type that will match the first available type, as it returns from the BE.
     */
    data object FirstAvailable : BlazeFollowEntityType()

    /**
     * Represents a Player entity type.
     * @param fallbackType An optional fallback type to use if Player is not available.
     */
    data class Player(val fallbackType: BlazeFollowEntityType?) : BlazeFollowEntityType()

    /**
     * Represents a Team entity type.
     * @param fallbackType An optional fallback type to use if Team is not available.
     */
    data class Team(val fallbackType: BlazeFollowEntityType?) : BlazeFollowEntityType()

    /**
     * Represents a Property entity type.
     * @param fallbackType An optional fallback type to use if Property is not available.
     */
    data class Property(val fallbackType: BlazeFollowEntityType?) : BlazeFollowEntityType()

}

Did this page help you?