Platform API

<back to all web services

RegisterDevice

Saves/Updates a Devices details and registers that device with an appliance.

Requires Authentication
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;

public class dtos
{

    /**
    * Saves/Updates a Devices details and registers that device with an appliance.
    */
    @Api(Description="Saves/Updates a Devices details and registers that device with an appliance.")
    public static class RegisterDevice
    {
        /**
        * Guid of the Appliance this Device is Registering under.
        */
        @ApiMember(DataType="Guid", Description="Guid of the Appliance this Device is Registering under.", IsRequired=true, Name="ApplianceId", ParameterType="query")
        public UUID ApplianceId = null;

        /**
        * Guid of the Device. If empty the Device will be inserted, if provided the device will be updated.
        */
        @ApiMember(DataType="Guid", Description="Guid of the Device. If empty the Device will be inserted, if provided the device will be updated.", IsRequired=true, Name="DeviceId", ParameterType="query")
        public UUID DeviceId = null;

        /**
        * The Device manufacturers number.
        */
        @ApiMember(DataType="string", Description="The Device manufacturers number.", Name="ManufacturerDeviceNumber", ParameterType="query")
        public String ManufacturerDeviceNumber = null;

        /**
        * The Device MAC Address.
        */
        @ApiMember(DataType="string", Description="The Device MAC Address.", Name="MacAddress", ParameterType="query")
        public String MacAddress = null;

        /**
        * The Device Model Name.
        */
        @ApiMember(DataType="string", Description="The Device Model Name.", IsRequired=true, Name="ModelName", ParameterType="query")
        public String ModelName = null;

        /**
        * The Device Form, e.g Phone | Tablet.
        */
        @ApiMember(DataType="string", Description="The Device Form, e.g Phone | Tablet.", IsRequired=true, Name="FormFactor", ParameterType="query")
        public String FormFactor = null;

        /**
        * The Device Brand.
        */
        @ApiMember(DataType="string", Description="The Device Brand.", Name="Brand", ParameterType="query")
        public String Brand = null;

        /**
        * The Device Dimensions (Height x Width x Depth).
        */
        @ApiMember(DataType="string", Description="The Device Dimensions (Height x Width x Depth).", Name="Dimensions", ParameterType="query")
        public String Dimensions = null;

        /**
        * The Device display resolution width in pixels.
        */
        @ApiMember(DataType="int", Description="The Device display resolution width in pixels.", Name="DisplayResolutionWidthPixels", ParameterType="query")
        public Integer DisplayResolutionWidthPixels = null;

        /**
        * The Device display resolution height in pixels.
        */
        @ApiMember(DataType="int", Description="The Device display resolution height in pixels.", Name="DisplayResolutionHeightPixels", ParameterType="query")
        public Integer DisplayResolutionHeightPixels = null;

        /**
        * The Device display width size in inches.
        */
        @ApiMember(DataType="decimal", Description="The Device display width size in inches.", Name="DisplaySizeWidthInches", ParameterType="query")
        public BigDecimal DisplaySizeWidthInches = null;

        /**
        * The Device display height size in inches.
        */
        @ApiMember(DataType="decimal", Description="The Device display height size in inches.", Name="DisplaySizeHeightInches", ParameterType="query")
        public BigDecimal DisplaySizeHeightInches = null;

        /**
        * The Device operating system.
        */
        @ApiMember(DataType="string", Description="The Device operating system.", Name="OperatingSystem", ParameterType="query")
        public String OperatingSystem = null;

        /**
        * The Device operating system version.
        */
        @ApiMember(DataType="string", Description="The Device operating system version.", Name="OperatingSystemVersion", ParameterType="query")
        public String OperatingSystemVersion = null;

        /**
        * The Device IP Address.
        */
        @ApiMember(DataType="string", Description="The Device IP Address.", Name="IpAddress", ParameterType="query")
        public String IpAddress = null;

        /**
        * Any Notes about the device.
        */
        @ApiMember(DataType="string", Description="Any Notes about the device.", Name="Notes", ParameterType="query")
        public String Notes = null;

        /**
        * Total memory size available (in bytes).
        */
        @ApiMember(DataType="string", Description="Total memory size available (in bytes).", Name="TotalMemorySize", ParameterType="query")
        public Integer TotalMemorySize = null;

        /**
        * The Network provider name.
        */
        @ApiMember(DataType="string", Description="The Network provider name.", Name="CellularProviderName", ParameterType="query")
        public String CellularProviderName = null;

        /**
        * The ISO Country Code of the country the device is currently located in.
        */
        @ApiMember(DataType="string", Description="The ISO Country Code of the country the device is currently located in.", Name="ISOCountryCode", ParameterType="query")
        public String ISOCountryCode = null;

        /**
        * The Mobile Country Code the device is currently located in.
        */
        @ApiMember(DataType="string", Description="The Mobile Country Code the device is currently located in.", Name="MobileCountryCode", ParameterType="query")
        public String MobileCountryCode = null;

        /**
        * The Mobile Network Code the device is currently using.
        */
        @ApiMember(DataType="string", Description="The Mobile Network Code the device is currently using.", Name="MobileNetworkCode", ParameterType="query")
        public String MobileNetworkCode = null;

        /**
        * The Language Code Identifier that represents the language used on the device.
        */
        @ApiMember(DataType="string", Description="The Language Code Identifier that represents the language used on the device.", Name="LanguageCodeIdentifier", ParameterType="query")
        public String LanguageCodeIdentifier = null;

        /**
        * The name of the Timezone the device was last used in.
        */
        @ApiMember(DataType="string", Description="The name of the Timezone the device was last used in.", Name="LastKnownTimeZone", ParameterType="query")
        public String LastKnownTimeZone = null;

        /**
        * The UTC Offset of the Timezone the device was last used in.  Formatted as +-##:##
        */
        @ApiMember(DataType="string", Description="The UTC Offset of the Timezone the device was last used in.  Formatted as +-##:##", Name="LastKnownTimeZoneOffset", ParameterType="query")
        public String LastKnownTimeZoneOffset = null;

        /**
        * The latitude the device was last located at.
        */
        @ApiMember(DataType="double", Description="The latitude the device was last located at.", IsRequired=true, Name="Latitude", ParameterType="query")
        public Double Latitude = null;

        /**
        * The longitude the device was last located at.
        */
        @ApiMember(DataType="double", Description="The longitude the device was last located at.", IsRequired=true, Name="Longitude", ParameterType="query")
        public Double Longitude = null;

        /**
        * The current value of InstanceSeed that the device has stored.
        */
        @ApiMember(DataType="int", Description="The current value of InstanceSeed that the device has stored.", IsRequired=true, Name="InstanceSeed", ParameterType="query")
        public Integer InstanceSeed = null;

        /**
        * The current value of InstanceCounterLastValue that the device has stored
        */
        @ApiMember(DataType="int", Description="The current value of InstanceCounterLastValue that the device has stored", IsRequired=true, Name="InstanceCounterLastValue", ParameterType="query")
        public Integer InstanceCounterLastValue = null;
        
        public UUID getApplianceId() { return ApplianceId; }
        public RegisterDevice setApplianceId(UUID value) { this.ApplianceId = value; return this; }
        public UUID getDeviceId() { return DeviceId; }
        public RegisterDevice setDeviceId(UUID value) { this.DeviceId = value; return this; }
        public String getManufacturerDeviceNumber() { return ManufacturerDeviceNumber; }
        public RegisterDevice setManufacturerDeviceNumber(String value) { this.ManufacturerDeviceNumber = value; return this; }
        public String getMacAddress() { return MacAddress; }
        public RegisterDevice setMacAddress(String value) { this.MacAddress = value; return this; }
        public String getModelName() { return ModelName; }
        public RegisterDevice setModelName(String value) { this.ModelName = value; return this; }
        public String getFormFactor() { return FormFactor; }
        public RegisterDevice setFormFactor(String value) { this.FormFactor = value; return this; }
        public String getBrand() { return Brand; }
        public RegisterDevice setBrand(String value) { this.Brand = value; return this; }
        public String getDimensions() { return Dimensions; }
        public RegisterDevice setDimensions(String value) { this.Dimensions = value; return this; }
        public Integer getDisplayResolutionWidthPixels() { return DisplayResolutionWidthPixels; }
        public RegisterDevice setDisplayResolutionWidthPixels(Integer value) { this.DisplayResolutionWidthPixels = value; return this; }
        public Integer getDisplayResolutionHeightPixels() { return DisplayResolutionHeightPixels; }
        public RegisterDevice setDisplayResolutionHeightPixels(Integer value) { this.DisplayResolutionHeightPixels = value; return this; }
        public BigDecimal getDisplaySizeWidthInches() { return DisplaySizeWidthInches; }
        public RegisterDevice setDisplaySizeWidthInches(BigDecimal value) { this.DisplaySizeWidthInches = value; return this; }
        public BigDecimal getDisplaySizeHeightInches() { return DisplaySizeHeightInches; }
        public RegisterDevice setDisplaySizeHeightInches(BigDecimal value) { this.DisplaySizeHeightInches = value; return this; }
        public String getOperatingSystem() { return OperatingSystem; }
        public RegisterDevice setOperatingSystem(String value) { this.OperatingSystem = value; return this; }
        public String getOperatingSystemVersion() { return OperatingSystemVersion; }
        public RegisterDevice setOperatingSystemVersion(String value) { this.OperatingSystemVersion = value; return this; }
        public String getIpAddress() { return IpAddress; }
        public RegisterDevice setIpAddress(String value) { this.IpAddress = value; return this; }
        public String getNotes() { return Notes; }
        public RegisterDevice setNotes(String value) { this.Notes = value; return this; }
        public Integer getTotalMemorySize() { return TotalMemorySize; }
        public RegisterDevice setTotalMemorySize(Integer value) { this.TotalMemorySize = value; return this; }
        public String getCellularProviderName() { return CellularProviderName; }
        public RegisterDevice setCellularProviderName(String value) { this.CellularProviderName = value; return this; }
        public String getIsoCountryCode() { return ISOCountryCode; }
        public RegisterDevice setIsoCountryCode(String value) { this.ISOCountryCode = value; return this; }
        public String getMobileCountryCode() { return MobileCountryCode; }
        public RegisterDevice setMobileCountryCode(String value) { this.MobileCountryCode = value; return this; }
        public String getMobileNetworkCode() { return MobileNetworkCode; }
        public RegisterDevice setMobileNetworkCode(String value) { this.MobileNetworkCode = value; return this; }
        public String getLanguageCodeIdentifier() { return LanguageCodeIdentifier; }
        public RegisterDevice setLanguageCodeIdentifier(String value) { this.LanguageCodeIdentifier = value; return this; }
        public String getLastKnownTimeZone() { return LastKnownTimeZone; }
        public RegisterDevice setLastKnownTimeZone(String value) { this.LastKnownTimeZone = value; return this; }
        public String getLastKnownTimeZoneOffset() { return LastKnownTimeZoneOffset; }
        public RegisterDevice setLastKnownTimeZoneOffset(String value) { this.LastKnownTimeZoneOffset = value; return this; }
        public Double getLatitude() { return Latitude; }
        public RegisterDevice setLatitude(Double value) { this.Latitude = value; return this; }
        public Double getLongitude() { return Longitude; }
        public RegisterDevice setLongitude(Double value) { this.Longitude = value; return this; }
        public Integer getInstanceSeed() { return InstanceSeed; }
        public RegisterDevice setInstanceSeed(Integer value) { this.InstanceSeed = value; return this; }
        public Integer getInstanceCounterLastValue() { return InstanceCounterLastValue; }
        public RegisterDevice setInstanceCounterLastValue(Integer value) { this.InstanceCounterLastValue = value; return this; }
    }

    public static class DeviceModel
    {
        /**
        * Guid representing the saved Device
        */
        @ApiMember(DataType="Guid", Description="Guid representing the saved Device", Name="DeviceId", ParameterType="query")
        public UUID DeviceId = null;

        /**
        * Details of the Type of Device
        */
        @ApiMember(DataType="DeviceTypeModel", Description="Details of the Type of Device", Name="DeviceType", ParameterType="query")
        public DeviceTypeModel DeviceType = null;

        /**
        * Current saved settings of the Device
        */
        @ApiMember(DataType="DeviceHistoryModel", Description="Current saved settings of the Device", Name="CurrentHistory", ParameterType="query")
        public DeviceHistoryModel CurrentHistory = null;

        /**
        * The Device Model Name.
        */
        @ApiMember(DataType="string", Description="The Device Model Name.", IsRequired=true, Name="ModelName", ParameterType="query")
        public String ModelName = null;

        /**
        * The Device model number.
        */
        @ApiMember(DataType="string", Description="The Device model number.", Name="ModelNumber", ParameterType="query")
        public String ModelNumber = null;

        /**
        * The Device serial number.
        */
        @ApiMember(DataType="string", Description="The Device serial number.", Name="SerialNumber", ParameterType="query")
        public String SerialNumber = null;

        /**
        * The Device manufacturers number.
        */
        @ApiMember(DataType="string", Description="The Device manufacturers number.", Name="ManufacturerDeviceNumber", ParameterType="query")
        public String ManufacturerDeviceNumber = null;

        /**
        * The Device MAC Address.
        */
        @ApiMember(DataType="string", Description="The Device MAC Address.", Name="MacAddress", ParameterType="query")
        public String MacAddress = null;

        /**
        * The current value of InstanceSeed that the device has stored.  If InstanceCounterLastValue has gone over 99999, this will contain a new seed value for the device.
        */
        @ApiMember(DataType="int", Description="The current value of InstanceSeed that the device has stored.  If InstanceCounterLastValue has gone over 99999, this will contain a new seed value for the device.", IsRequired=true, Name="InstanceSeed", ParameterType="query")
        public Integer InstanceSeed = null;

        /**
        * The current value of InstanceCounterLastValue that the device has stored
        */
        @ApiMember(DataType="int", Description="The current value of InstanceCounterLastValue that the device has stored", IsRequired=true, Name="InstanceCounterLastValue", ParameterType="query")
        public Integer InstanceCounterLastValue = null;

        /**
        * ServiceStack ResponseStatus.
        */
        @ApiMember(DataType="ResponseStatus", Description="ServiceStack ResponseStatus.", Name="ResponseStatus", ParameterType="query")
        public ResponseStatus ResponseStatus = null;
        
        public UUID getDeviceId() { return DeviceId; }
        public DeviceModel setDeviceId(UUID value) { this.DeviceId = value; return this; }
        public DeviceTypeModel getDeviceType() { return DeviceType; }
        public DeviceModel setDeviceType(DeviceTypeModel value) { this.DeviceType = value; return this; }
        public DeviceHistoryModel getCurrentHistory() { return CurrentHistory; }
        public DeviceModel setCurrentHistory(DeviceHistoryModel value) { this.CurrentHistory = value; return this; }
        public String getModelName() { return ModelName; }
        public DeviceModel setModelName(String value) { this.ModelName = value; return this; }
        public String getModelNumber() { return ModelNumber; }
        public DeviceModel setModelNumber(String value) { this.ModelNumber = value; return this; }
        public String getSerialNumber() { return SerialNumber; }
        public DeviceModel setSerialNumber(String value) { this.SerialNumber = value; return this; }
        public String getManufacturerDeviceNumber() { return ManufacturerDeviceNumber; }
        public DeviceModel setManufacturerDeviceNumber(String value) { this.ManufacturerDeviceNumber = value; return this; }
        public String getMacAddress() { return MacAddress; }
        public DeviceModel setMacAddress(String value) { this.MacAddress = value; return this; }
        public Integer getInstanceSeed() { return InstanceSeed; }
        public DeviceModel setInstanceSeed(Integer value) { this.InstanceSeed = value; return this; }
        public Integer getInstanceCounterLastValue() { return InstanceCounterLastValue; }
        public DeviceModel setInstanceCounterLastValue(Integer value) { this.InstanceCounterLastValue = value; return this; }
        public ResponseStatus getResponseStatus() { return ResponseStatus; }
        public DeviceModel setResponseStatus(ResponseStatus value) { this.ResponseStatus = value; return this; }
    }

    public static class DeviceTypeModel
    {
        /**
        * Guid representing the saved Device Type
        */
        @ApiMember(DataType="Guid", Description="Guid representing the saved Device Type", Name="DeviceTypeId", ParameterType="query")
        public UUID DeviceTypeId = null;

        /**
        * Guid representing the saved Device Class
        */
        @ApiMember(DataType="Guid", Description="Guid representing the saved Device Class", Name="DeviceClassId", ParameterType="query")
        public UUID DeviceClassId = null;

        /**
        * The Device Class Name
        */
        @ApiMember(DataType="string", Description="The Device Class Name", Name="DeviceClassName", ParameterType="query")
        public String DeviceClassName = null;

        /**
        * The Device Brand.
        */
        @ApiMember(DataType="string", Description="The Device Brand.", Name="Brand", ParameterType="query")
        public String Brand = null;

        /**
        * The Device Model Name.
        */
        @ApiMember(DataType="string", Description="The Device Model Name.", IsRequired=true, Name="ModelName", ParameterType="query")
        public String ModelName = null;

        /**
        * The Device Form, e.g Phone | Tablet.
        */
        @ApiMember(DataType="string", Description="The Device Form, e.g Phone | Tablet.", Name="FormFactor", ParameterType="query")
        public String FormFactor = null;

        /**
        * The Device Dimensions (Height x Width x Depth).
        */
        @ApiMember(DataType="string", Description="The Device Dimensions (Height x Width x Depth).", Name="Dimensions", ParameterType="query")
        public String Dimensions = null;

        /**
        * The Device display resolution width in pixels.
        */
        @ApiMember(DataType="int", Description="The Device display resolution width in pixels.", Name="DisplayResolutionWidthPixels", ParameterType="query")
        public Integer DisplayResolutionWidthPixels = null;

        /**
        * The Device display resolution height in pixels.
        */
        @ApiMember(DataType="int", Description="The Device display resolution height in pixels.", Name="DisplayResolutionHeightPixels", ParameterType="query")
        public Integer DisplayResolutionHeightPixels = null;

        /**
        * The Device display width size in inches.
        */
        @ApiMember(DataType="decimal", Description="The Device display width size in inches.", Name="DisplaySizeWidthInches", ParameterType="query")
        public BigDecimal DisplaySizeWidthInches = null;

        /**
        * The Device display height size in inches.
        */
        @ApiMember(DataType="decimal", Description="The Device display height size in inches.", Name="DisplaySizeHeightInches", ParameterType="query")
        public BigDecimal DisplaySizeHeightInches = null;
        
        public UUID getDeviceTypeId() { return DeviceTypeId; }
        public DeviceTypeModel setDeviceTypeId(UUID value) { this.DeviceTypeId = value; return this; }
        public UUID getDeviceClassId() { return DeviceClassId; }
        public DeviceTypeModel setDeviceClassId(UUID value) { this.DeviceClassId = value; return this; }
        public String getDeviceClassName() { return DeviceClassName; }
        public DeviceTypeModel setDeviceClassName(String value) { this.DeviceClassName = value; return this; }
        public String getBrand() { return Brand; }
        public DeviceTypeModel setBrand(String value) { this.Brand = value; return this; }
        public String getModelName() { return ModelName; }
        public DeviceTypeModel setModelName(String value) { this.ModelName = value; return this; }
        public String getFormFactor() { return FormFactor; }
        public DeviceTypeModel setFormFactor(String value) { this.FormFactor = value; return this; }
        public String getDimensions() { return Dimensions; }
        public DeviceTypeModel setDimensions(String value) { this.Dimensions = value; return this; }
        public Integer getDisplayResolutionWidthPixels() { return DisplayResolutionWidthPixels; }
        public DeviceTypeModel setDisplayResolutionWidthPixels(Integer value) { this.DisplayResolutionWidthPixels = value; return this; }
        public Integer getDisplayResolutionHeightPixels() { return DisplayResolutionHeightPixels; }
        public DeviceTypeModel setDisplayResolutionHeightPixels(Integer value) { this.DisplayResolutionHeightPixels = value; return this; }
        public BigDecimal getDisplaySizeWidthInches() { return DisplaySizeWidthInches; }
        public DeviceTypeModel setDisplaySizeWidthInches(BigDecimal value) { this.DisplaySizeWidthInches = value; return this; }
        public BigDecimal getDisplaySizeHeightInches() { return DisplaySizeHeightInches; }
        public DeviceTypeModel setDisplaySizeHeightInches(BigDecimal value) { this.DisplaySizeHeightInches = value; return this; }
    }

    public static class DeviceHistoryModel
    {
        /**
        * Guid representing the current Device History
        */
        @ApiMember(DataType="Guid", Description="Guid representing the current Device History", Name="DeviceHistoryId", ParameterType="query")
        public UUID DeviceHistoryId = null;

        /**
        * Guid representing the current Device History Device Configuration record.
        */
        @ApiMember(DataType="Guid", Description="Guid representing the current Device History Device Configuration record.", Name="PrimaryDeviceHistoryDeviceConfigurationId", ParameterType="query")
        public UUID PrimaryDeviceHistoryDeviceConfigurationId = null;

        /**
        * The Device name.
        */
        @ApiMember(DataType="string", Description="The Device name.", Name="DeviceName", ParameterType="query")
        public String DeviceName = null;

        /**
        * The Device operating system.
        */
        @ApiMember(DataType="string", Description="The Device operating system.", Name="OperatingSystem", ParameterType="query")
        public String OperatingSystem = null;

        /**
        * The Device operating system version.
        */
        @ApiMember(DataType="string", Description="The Device operating system version.", Name="OperatingSystemVersion", ParameterType="query")
        public String OperatingSystemVersion = null;

        /**
        * The Device IP Address.
        */
        @ApiMember(DataType="string", Description="The Device IP Address.", Name="IpAddress", ParameterType="query")
        public String IpAddress = null;

        /**
        * Any Notes about the device.
        */
        @ApiMember(DataType="string", Description="Any Notes about the device.", Name="Notes", ParameterType="query")
        public String Notes = null;

        /**
        * Total memory size available (in bytes).
        */
        @ApiMember(DataType="string", Description="Total memory size available (in bytes).", Name="TotalMemorySize", ParameterType="query")
        public Integer TotalMemorySize = null;

        /**
        * The Network provider name.
        */
        @ApiMember(DataType="string", Description="The Network provider name.", Name="CellularProviderName", ParameterType="query")
        public String CellularProviderName = null;

        /**
        * The Mobile Country Code the device is currently located in.
        */
        @ApiMember(DataType="string", Description="The Mobile Country Code the device is currently located in.", Name="MobileCountryCode", ParameterType="query")
        public String MobileCountryCode = null;

        /**
        * The Mobile Network Code the device is currently using.
        */
        @ApiMember(DataType="string", Description="The Mobile Network Code the device is currently using.", Name="MobileNetworkCode", ParameterType="query")
        public String MobileNetworkCode = null;

        /**
        * The Language Code Identifier that represents the language used on the device.
        */
        @ApiMember(DataType="string", Description="The Language Code Identifier that represents the language used on the device.", Name="LanguageCodeIdentifier", ParameterType="query")
        public String LanguageCodeIdentifier = null;

        /**
        * The latitude the device was last located at.
        */
        @ApiMember(DataType="double", Description="The latitude the device was last located at.", Name="Latitude", ParameterType="query")
        public Double Latitude = null;

        /**
        * The longitude the device was last located at.
        */
        @ApiMember(DataType="double", Description="The longitude the device was last located at.", Name="Longitude", ParameterType="query")
        public Double Longitude = null;
        
        public UUID getDeviceHistoryId() { return DeviceHistoryId; }
        public DeviceHistoryModel setDeviceHistoryId(UUID value) { this.DeviceHistoryId = value; return this; }
        public UUID getPrimaryDeviceHistoryDeviceConfigurationId() { return PrimaryDeviceHistoryDeviceConfigurationId; }
        public DeviceHistoryModel setPrimaryDeviceHistoryDeviceConfigurationId(UUID value) { this.PrimaryDeviceHistoryDeviceConfigurationId = value; return this; }
        public String getDeviceName() { return DeviceName; }
        public DeviceHistoryModel setDeviceName(String value) { this.DeviceName = value; return this; }
        public String getOperatingSystem() { return OperatingSystem; }
        public DeviceHistoryModel setOperatingSystem(String value) { this.OperatingSystem = value; return this; }
        public String getOperatingSystemVersion() { return OperatingSystemVersion; }
        public DeviceHistoryModel setOperatingSystemVersion(String value) { this.OperatingSystemVersion = value; return this; }
        public String getIpAddress() { return IpAddress; }
        public DeviceHistoryModel setIpAddress(String value) { this.IpAddress = value; return this; }
        public String getNotes() { return Notes; }
        public DeviceHistoryModel setNotes(String value) { this.Notes = value; return this; }
        public Integer getTotalMemorySize() { return TotalMemorySize; }
        public DeviceHistoryModel setTotalMemorySize(Integer value) { this.TotalMemorySize = value; return this; }
        public String getCellularProviderName() { return CellularProviderName; }
        public DeviceHistoryModel setCellularProviderName(String value) { this.CellularProviderName = value; return this; }
        public String getMobileCountryCode() { return MobileCountryCode; }
        public DeviceHistoryModel setMobileCountryCode(String value) { this.MobileCountryCode = value; return this; }
        public String getMobileNetworkCode() { return MobileNetworkCode; }
        public DeviceHistoryModel setMobileNetworkCode(String value) { this.MobileNetworkCode = value; return this; }
        public String getLanguageCodeIdentifier() { return LanguageCodeIdentifier; }
        public DeviceHistoryModel setLanguageCodeIdentifier(String value) { this.LanguageCodeIdentifier = value; return this; }
        public Double getLatitude() { return Latitude; }
        public DeviceHistoryModel setLatitude(Double value) { this.Latitude = value; return this; }
        public Double getLongitude() { return Longitude; }
        public DeviceHistoryModel setLongitude(Double value) { this.Longitude = value; return this; }
    }

}

Java RegisterDevice DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/reply/RegisterDevice HTTP/1.1 
Host: pfapi.pstpf.com.au 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RegisterDevice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
  <ApplianceId>00000000-0000-0000-0000-000000000000</ApplianceId>
  <Brand>String</Brand>
  <CellularProviderName>String</CellularProviderName>
  <DeviceId>00000000-0000-0000-0000-000000000000</DeviceId>
  <Dimensions>String</Dimensions>
  <DisplayResolutionHeightPixels>0</DisplayResolutionHeightPixels>
  <DisplayResolutionWidthPixels>0</DisplayResolutionWidthPixels>
  <DisplaySizeHeightInches>0</DisplaySizeHeightInches>
  <DisplaySizeWidthInches>0</DisplaySizeWidthInches>
  <FormFactor>String</FormFactor>
  <ISOCountryCode>String</ISOCountryCode>
  <InstanceCounterLastValue>0</InstanceCounterLastValue>
  <InstanceSeed>0</InstanceSeed>
  <IpAddress>String</IpAddress>
  <LanguageCodeIdentifier>String</LanguageCodeIdentifier>
  <LastKnownTimeZone>String</LastKnownTimeZone>
  <LastKnownTimeZoneOffset>String</LastKnownTimeZoneOffset>
  <Latitude>0</Latitude>
  <Longitude>0</Longitude>
  <MacAddress>String</MacAddress>
  <ManufacturerDeviceNumber>String</ManufacturerDeviceNumber>
  <MobileCountryCode>String</MobileCountryCode>
  <MobileNetworkCode>String</MobileNetworkCode>
  <ModelName>String</ModelName>
  <Notes>String</Notes>
  <OperatingSystem>String</OperatingSystem>
  <OperatingSystemVersion>String</OperatingSystemVersion>
  <TotalMemorySize>0</TotalMemorySize>
</RegisterDevice>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<DeviceModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Eros.Subtle.Canvara.WebAPIModel.ServiceModel">
  <CurrentHistory>
    <CellularProviderName>String</CellularProviderName>
    <DeviceHistoryId>00000000-0000-0000-0000-000000000000</DeviceHistoryId>
    <DeviceName>String</DeviceName>
    <IpAddress>String</IpAddress>
    <LanguageCodeIdentifier>String</LanguageCodeIdentifier>
    <Latitude>0</Latitude>
    <Longitude>0</Longitude>
    <MobileCountryCode>String</MobileCountryCode>
    <MobileNetworkCode>String</MobileNetworkCode>
    <Notes>String</Notes>
    <OperatingSystem>String</OperatingSystem>
    <OperatingSystemVersion>String</OperatingSystemVersion>
    <PrimaryDeviceHistoryDeviceConfigurationId>00000000-0000-0000-0000-000000000000</PrimaryDeviceHistoryDeviceConfigurationId>
    <TotalMemorySize>0</TotalMemorySize>
  </CurrentHistory>
  <DeviceId>00000000-0000-0000-0000-000000000000</DeviceId>
  <DeviceType>
    <Brand>String</Brand>
    <DeviceClassId>00000000-0000-0000-0000-000000000000</DeviceClassId>
    <DeviceClassName>String</DeviceClassName>
    <DeviceTypeId>00000000-0000-0000-0000-000000000000</DeviceTypeId>
    <Dimensions>String</Dimensions>
    <DisplayResolutionHeightPixels>0</DisplayResolutionHeightPixels>
    <DisplayResolutionWidthPixels>0</DisplayResolutionWidthPixels>
    <DisplaySizeHeightInches>0</DisplaySizeHeightInches>
    <DisplaySizeWidthInches>0</DisplaySizeWidthInches>
    <FormFactor>String</FormFactor>
    <ModelName>String</ModelName>
  </DeviceType>
  <InstanceCounterLastValue>0</InstanceCounterLastValue>
  <InstanceSeed>0</InstanceSeed>
  <MacAddress>String</MacAddress>
  <ManufacturerDeviceNumber>String</ManufacturerDeviceNumber>
  <ModelName>String</ModelName>
  <ModelNumber>String</ModelNumber>
  <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
    <d2p1:ErrorCode>String</d2p1:ErrorCode>
    <d2p1:Message>String</d2p1:Message>
    <d2p1:StackTrace>String</d2p1:StackTrace>
    <d2p1:Errors>
      <d2p1:ResponseError>
        <d2p1:ErrorCode>String</d2p1:ErrorCode>
        <d2p1:FieldName>String</d2p1:FieldName>
        <d2p1:Message>String</d2p1:Message>
        <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
          <d5p1:KeyValueOfstringstring>
            <d5p1:Key>String</d5p1:Key>
            <d5p1:Value>String</d5p1:Value>
          </d5p1:KeyValueOfstringstring>
        </d2p1:Meta>
      </d2p1:ResponseError>
    </d2p1:Errors>
    <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:KeyValueOfstringstring>
        <d3p1:Key>String</d3p1:Key>
        <d3p1:Value>String</d3p1:Value>
      </d3p1:KeyValueOfstringstring>
    </d2p1:Meta>
  </ResponseStatus>
  <SerialNumber>String</SerialNumber>
</DeviceModel>