This client library can be used to easily get device data from DeviceAtlas
Cloud. Data returned from DeviceAtlas Cloud is cached locally to greatly
improve performance. The caching uses the built in .NET cache backed by a file cache.
This client is queried by passing either HttpRequest object or a collection of headers to it.
Namespace: Mobi.Mtld.DeviceAtlas.CloudAssembly: DeviceAtlasCloudClient-1.1 (in DeviceAtlasCloudClient-1.1.dll) Version: 1.1.0.0 (1.1.0.0)
Syntax
C# |
---|
public class Client |
Visual Basic |
---|
Public Class Client |
Visual C++ |
---|
public ref class Client |
Remarks
Typical usage is as follows:
CopyC#

Client client = Client.GetInstance(); client.SetLicenceKey(licenceKey); // this uses the headers from the browser/phone you are using for testing Hashtable results = client.GetDeviceData(Request); // handle exceptions etc... String ua = (String)results[Client.KEY_USERAGENT]; // The useragent used in the lookup String dataSource = (String)results[Client.KEY_SOURCE]; // The source of the data - cache, cloud etc Hashtable properties = (Hashtable)results[Client.KEY_PROPERTIES]; // The actual device properties
Inheritance Hierarchy
System..::..Object
Mobi.Mtld.DeviceAtlas.Cloud..::..Client
Mobi.Mtld.DeviceAtlas.Cloud..::..Client