content: /*
   * Copyright (C) 2013 4th Line GmbH, Switzerland
   *
   * The contents of this file are subject to the terms of either the GNU
   * Lesser General Public License Version 2 or later ("LGPL") or the
   * Common Development and Distribution License Version 1 or later
   * ("CDDL") (collectively, the "License"). You may not use this file
   * except in compliance with the License. See LICENSE.txt for more
   * information.
   *
   * This program is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   */
  
  package org.fourthline.cling.test.data;
  
  import org.fourthline.cling.model.meta.Device;
  import org.fourthline.cling.model.meta.DeviceDetails;
  import org.fourthline.cling.model.profile.RemoteClientInfo;
  import org.fourthline.cling.model.profile.DeviceDetailsProvider;
  import org.fourthline.cling.model.meta.DeviceIdentity;
  import org.fourthline.cling.model.meta.Icon;
  import org.fourthline.cling.model.meta.ManufacturerDetails;
  import org.fourthline.cling.model.meta.ModelDetails;
  import org.fourthline.cling.model.meta.Service;
  import org.fourthline.cling.model.types.DeviceType;
  import org.fourthline.cling.model.types.UDADeviceType;
  import org.fourthline.cling.model.types.UDN;
  
  /**
   * @author Christian Bauer
   */
  public class SampleDeviceEmbeddedTwo extends SampleDevice {
  
      public SampleDeviceEmbeddedTwo(DeviceIdentity identity, Service service, Device embeddedDevice) {
          super(identity, service, embeddedDevice);
      }
  
      @Override
      public DeviceType getDeviceType() {
          return new UDADeviceType("MY-DEVICE-TYPE-THREE", 3);
      }
  
      @Override
      public DeviceDetails getDeviceDetails() {
          return new DeviceDetails(
                  "My Testdevice Third",
                  new ManufacturerDetails("4th Line", "http://www.4thline.org/"),
                  new ModelDetails("MYMODEL", "TEST Device", "ONE", "http://www.4thline.org/another_embedded_model"),
                  "000da201238d",
                  "100000000003",
                  "http://www.4thline.org/some_third_user_interface");
  
      }
  
      @Override
      public DeviceDetailsProvider getDeviceDetailsProvider() {
          return new DeviceDetailsProvider() {
              public DeviceDetails provide(RemoteClientInfo info) {
                  return getDeviceDetails();
              }
          };
      }
  
      @Override
      public Icon[] getIcons() {
          return null;
      }
  
      public static UDN getEmbeddedTwoUDN() {
          return new UDN("MY-DEVICE-789");
      }
  
  }
  