listContains

open suspend override fun listContains(name: String, value: String): Boolean(source)

Checks whether the specified value is within the list with the supplied name. The return value is guaranteed to match the value set within the SDK, even if the value was not yet synchronized with the Kubernetes resource. If no list with this name exists, an appropriate exception will be thrown.

The Counts and Lists API will eventually supersede the specific player tracking APIs of the AgonesSdk, as these cover a broader use-case and offer similar interfaces for tracking. Therefore, this method should be preferred.

Return

Whether the specified value is within the list with the supplied name.

Parameters

name

The unique identifier of this instance's list whose entries should be checked.

See also

Throws

If null is supplied as the list identifier and therefore no list can be derived from it or if the value is null.