C# Class SenseNet.ApplicationModel.DeviceManager

Exibir arquivo Open project: maxpavlov/FlexNet

Private Properties

Property Type Description
GetDeviceChainPrivate string[]
GetRequestedDeviceNamePrivate string
Initialize void
Reset void
ResetPrivate void

Public Methods

Method Description
GetDeviceChain ( string requestedDevice ) : string[]

Returns the device fallback chain. Empty array if requestedDevice is not registered as a SenseNet.ApplicationModel.Device. Returns an array with one item if there is no fallback device. Index of identified device is 0, first fallback is 1 and so on.

GetRequestedDeviceName ( string userAgent ) : string

Returns identified device or null

Private Methods

Method Description
GetDeviceChainPrivate ( string requestedDevice ) : string[]
GetRequestedDeviceNamePrivate ( string userAgent ) : string
Initialize ( ) : void
Reset ( ) : void
ResetPrivate ( ) : void

Method Details

GetDeviceChain() public static method

Returns the device fallback chain. Empty array if requestedDevice is not registered as a SenseNet.ApplicationModel.Device. Returns an array with one item if there is no fallback device. Index of identified device is 0, first fallback is 1 and so on.
public static GetDeviceChain ( string requestedDevice ) : string[]
requestedDevice string
return string[]

GetRequestedDeviceName() public static method

Returns identified device or null
public static GetRequestedDeviceName ( string userAgent ) : string
userAgent string Device will be parsed from this
return string