Search in sources :

Example 1 with StreamFilter

use of com.symphony.api.model.StreamFilter in project spring-bot by finos.

the class SymphonyConversationsImpl method getAllChats.

@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public Set<Chat> getAllChats() {
    StreamType st = new StreamType().type(TypeEnum.ROOM);
    StreamFilter streamTypes = new StreamFilter().streamTypes(Collections.singletonList(st));
    return (Set<Chat>) (Set) getAllConversationsFiltered(streamTypes);
}
Also used : StreamType(com.symphony.api.model.StreamType) HashSet(java.util.HashSet) Set(java.util.Set) StreamFilter(com.symphony.api.model.StreamFilter)

Aggregations

StreamFilter (com.symphony.api.model.StreamFilter)1 StreamType (com.symphony.api.model.StreamType)1 HashSet (java.util.HashSet)1 Set (java.util.Set)1