searchChannelsAsFlow

fun searchChannelsAsFlow(    context: Context,     activeFirst: Boolean,     activeChannelOrderedByLevel: Boolean,     search: String?): Flow<List<STWVoipChannel>?>

This method will first emit the channels from the local database and then request the filtered company contacts from the remote server, it will then emit the result as soon as it is received merged with the local result.

Return

Flow of list of STWVoipChannel.

Parameters

context

The application context

activeFirst

if true list will be ordered by active channel first

activeChannelOrderedByLevel

if true active channels will be ordered by channel level

search

keyword used to filter the channels based on multiple criterias