Use the async CallServiceSelector API

Switch DummyCallServiceSelector to use the new CallServiceSelector API.

Change-Id: Ifc062cf49421079686d925406c823000232fa728
This commit is contained in:
Evan Charlton 2014-02-20 08:37:01 -08:00
parent fc511caf40
commit a1c1708a8b
1 changed files with 6 additions and 5 deletions

View File

@ -28,14 +28,15 @@ import java.util.List;
*/
public class DummyCallServiceSelector extends CallServiceSelector {
@Override
protected boolean isSwitchable(CallInfo callInfo) {
return false;
protected void isSwitchable(CallInfo callInfo, CallSwitchabilityResponse response) {
response.setSwitchable(false);
}
@Override
protected List<CallServiceDescriptor> select(
CallInfo callInfo, List<CallServiceDescriptor> callServiceDescriptors) {
protected void select(
CallInfo callInfo, List<CallServiceDescriptor> callServiceDescriptors,
CallServiceSelectionResponse response) {
return callServiceDescriptors;
response.setSelectedCallServices(callServiceDescriptors);
}
}