public class

Device

extends Object
java.lang.Object
   ↳ org.ocast.core.Device

Class Overview

Represents an OCast device

Summary

Public Constructors
Device(String uuid, String friendlyName, String manufacturer, String modelName, URI urlBase)
Public Methods
URI getDialURI()
Retrieve the Dial application URL found in device tag URLBase or the one provided to fromDeviceDescription if it comes from a header.
String getFriendlyName()
Retrieve the device friendly name found in device tag
String getManufacturer()
Retrieve the manufacturer found in found in device tag
String getModelName()
Retrieve the model name found in device tag
String getUuid()
Retrieve the UUID found in device tag
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Device (String uuid, String friendlyName, String manufacturer, String modelName, URI urlBase)

Public Methods

public URI getDialURI ()

Retrieve the Dial application URL found in device tag URLBase or the one provided to fromDeviceDescription if it comes from a header.

Returns
  • an URL

public String getFriendlyName ()

Retrieve the device friendly name found in device tag

Returns
  • friendly name

public String getManufacturer ()

Retrieve the manufacturer found in found in device tag

Returns
  • the manufacturer name

public String getModelName ()

Retrieve the model name found in device tag

Returns
  • the model name

public String getUuid ()

Retrieve the UUID found in device tag

Returns
  • the uuid value without uuid: prefix