Package-level declarations

Types

Link copied to clipboard
abstract class BaseQuerySort<T : Any> : QuerySorter<T>

Base class for implementing QuerySorter. This class holds common code for QuerySortByField and QuerySortByReflection.

Link copied to clipboard

Implement this interface to use QuerySortByField. Implementations of this interface must provide comparable fields.

Link copied to clipboard

Implementation of QuerySorter for fields that implements ComparableFieldProvider. This QuerySorter doesn't use reflection and it's more performant than QuerySortByReflection.

Link copied to clipboard

Sort specification for api queries. You can specify QuerySortByReflection by referencing kotlin class property or passing field name as string instance. QuerySortByReflection.asc(Channel::memberCount) and QuerySortByReflection.asc("member_count") mean the same.

Link copied to clipboard
interface QuerySorter<T : Any>

Interface for the sorter of the SDK. Its implementations must provide a comparator to be used for sorting collections of data in the SDK.

Link copied to clipboard

Sort order which can be ascending or descending.