@ ObjectiveCName ( "findPeersWithType:" ) public Command < List < PeerSearchEntity > > findPeers ( PeerSearchType type ) { return callback -> modules . getSearchModule ( ) . findPeers ( type ) . then ( v -> callback . onResult ( v ) ) . failure ( e -> callback . onError ( e ) ) ; }
Finding peers by type