// Path: android/app/src/mocked/java/com/loicortola/controller/library/ledstrip/resolver/LedStripTypeResolver.java
// public class LedStripTypeResolver implements DeviceTypeResolver<LedStripRemoteControl> {
// 
//     @Override
//     public boolean isSecure() {
//         return true;
//     }
// 
//     @Override
//     public boolean supports(NsdServiceInfo info) {
//         return false;
//     }
// 
//     @Override
//     public boolean supports(SsdpService service) {
//         return false;
//     }
// 
//     @Override
//     public boolean supports(Class<? extends Command> clazz) {
//         if (ChangeColorCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (CheckSecretKeyCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (SwitchCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (AnimateCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (CheckHealthCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (LoadPresetCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         return false;
//     }
// 
//     @Override
//     public Device resolve(NsdServiceInfo info) {
//         return null;
//     }
// 
//     @Override
//     public Device resolve(SsdpService service) {
//         return null;
//     }
// 
//     @Override
//     public LedStripRemoteControl getRemoteControl(Device d) {
//         return new LedStripRemoteControl(d);
//     }
// }


import android.net.nsd.NsdServiceInfo;
import com.loicortola.controller.library.ledstrip.resolver.LedStripTypeResolver;
import java.util.ArrayList;
import java.util.List;
import io.resourcepool.jarpic.model.SsdpService;
package com.loicortola.controller.device;






/**
 * Created by loic on 28/03/2016.
 */
public class DeviceTypeResolverService {

    private List<DeviceTypeResolver> typeResolvers;

    public DeviceTypeResolverService() {
        typeResolvers = new ArrayList<>();
// Path: android/app/src/mocked/java/com/loicortola/controller/library/ledstrip/resolver/LedStripTypeResolver.java
// public class LedStripTypeResolver implements DeviceTypeResolver<LedStripRemoteControl> {
// 
//     @Override
//     public boolean isSecure() {
//         return true;
//     }
// 
//     @Override
//     public boolean supports(NsdServiceInfo info) {
//         return false;
//     }
// 
//     @Override
//     public boolean supports(SsdpService service) {
//         return false;
//     }
// 
//     @Override
//     public boolean supports(Class<? extends Command> clazz) {
//         if (ChangeColorCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (CheckSecretKeyCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (SwitchCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (AnimateCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (CheckHealthCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         if (LoadPresetCommand.class.equals(clazz)) {
//             return true;
//         }
// 
//         return false;
//     }
// 
//     @Override
//     public Device resolve(NsdServiceInfo info) {
//         return null;
//     }
// 
//     @Override
//     public Device resolve(SsdpService service) {
//         return null;
//     }
// 
//     @Override
//     public LedStripRemoteControl getRemoteControl(Device d) {
//         return new LedStripRemoteControl(d);
//     }
// }


// Path: android/app/src/main/java/com/loicortola/controller/device/DeviceTypeResolverService.java
import android.net.nsd.NsdServiceInfo;
import com.loicortola.controller.library.ledstrip.resolver.LedStripTypeResolver;
import java.util.ArrayList;
import java.util.List;
import io.resourcepool.jarpic.model.SsdpService;

package com.loicortola.controller.device;






/**
 * Created by loic on 28/03/2016.
 */
public class DeviceTypeResolverService {

    private List<DeviceTypeResolver> typeResolvers;

    public DeviceTypeResolverService() {
        typeResolvers = new ArrayList<>();
        typeResolvers.add(new LedStripTypeResolver());