Show / Hide Table of Contents

Class NSPocketDeviceInfo

Describes a device running Pocket CRM.

Syntax

Constructors

NSPocketDeviceInfo()

Initializes a new instance of the NSPocketDeviceInfo class.

Declaration
NSPocketDeviceInfo

Methods

GetDeviceIdentifier()

Describes a device running Pocket CRM.

Declaration
String GetDeviceIdentifier()
Returns
Type Description
String

A unique identifier of this device. This value should always be the same for the same device.

Examples
NSPocketDeviceInfo thing;
String deviceIdentifier = thing.GetDeviceIdentifier();

GetDeviceName()

Describes a device running Pocket CRM.

Declaration
String GetDeviceName()
Returns
Type Description
String

A friendly display name for the device. For example, 'Bobbys iPhone 5S'.

Examples
NSPocketDeviceInfo thing;
String deviceName = thing.GetDeviceName();

GetLanguage()

Describes a device running Pocket CRM.

Declaration
String GetLanguage()
Returns
Type Description
String

The language which this device will receive notifications translated in.

Examples
NSPocketDeviceInfo thing;
String language = thing.GetLanguage();

GetOSVersion()

Describes a device running Pocket CRM.

Declaration
String GetOSVersion()
Returns
Type Description
String

The operating system version. For example, 'iOS v10.2.

Examples
NSPocketDeviceInfo thing;
String oSVersion = thing.GetOSVersion();

GetPlatform()

Describes a device running Pocket CRM.

Declaration
Integer GetPlatform()
Returns
Type Description
Integer

What platform does this device belong to. See NotificationPlatform.

Examples
NSPocketDeviceInfo thing;
Integer platform = thing.GetPlatform();

GetPNSHandle()

Describes a device running Pocket CRM.

Declaration
String GetPNSHandle()
Returns
Type Description
String

The identifier associated with the device that will be used when talking with vendors push services.

Examples
NSPocketDeviceInfo thing;
String pNSHandle = thing.GetPNSHandle();

GetPocketVersion()

Describes a device running Pocket CRM.

Declaration
String GetPocketVersion()
Returns
Type Description
String

What version of Pocket CRM this device is running. For example, '8.0.37'

Examples
NSPocketDeviceInfo thing;
String pocketVersion = thing.GetPocketVersion();

SetDeviceIdentifier(String)

Describes a device running Pocket CRM.

Declaration
Void SetDeviceIdentifier(String deviceIdentifier)
Parameters
Type Name Description
String deviceIdentifier

A unique identifier of this device. This value should always be the same for the same device.

Returns
Type Description
Void
Examples
NSPocketDeviceInfo thing;
String deviceIdentifier;
thing.SetDeviceIdentifier(deviceIdentifier);

SetDeviceName(String)

Describes a device running Pocket CRM.

Declaration
Void SetDeviceName(String deviceName)
Parameters
Type Name Description
String deviceName

A friendly display name for the device. For example, 'Bobbys iPhone 5S'.

Returns
Type Description
Void
Examples
NSPocketDeviceInfo thing;
String deviceName;
thing.SetDeviceName(deviceName);

SetLanguage(String)

Describes a device running Pocket CRM.

Declaration
Void SetLanguage(String language)
Parameters
Type Name Description
String language

The language which this device will receive notifications translated in.

Returns
Type Description
Void
Examples
NSPocketDeviceInfo thing;
String language;
thing.SetLanguage(language);

SetOSVersion(String)

Describes a device running Pocket CRM.

Declaration
Void SetOSVersion(String oSVersion)
Parameters
Type Name Description
String oSVersion

The operating system version. For example, 'iOS v10.2'.

Returns
Type Description
Void
Examples
NSPocketDeviceInfo thing;
String oSVersion;
thing.SetOSVersion(oSVersion);

SetPlatform(Integer)

Describes a device running Pocket CRM.

Declaration
Void SetPlatform(Integer platform)
Parameters
Type Name Description
Integer platform

What platform does this device belong to. See NotificationPlatform.

Returns
Type Description
Void
Examples
NSPocketDeviceInfo thing;
Integer platform;
thing.SetPlatform(platform);

SetPNSHandle(String)

Describes a device running Pocket CRM.

Declaration
Void SetPNSHandle(String pNSHandle)
Parameters
Type Name Description
String pNSHandle

The identifier associated with the device that will be used when talking with vendors push services.

Returns
Type Description
Void
Examples
NSPocketDeviceInfo thing;
String pNSHandle;
thing.SetPNSHandle(pNSHandle);

SetPocketVersion(String)

Describes a device running Pocket CRM.

Declaration
Void SetPocketVersion(String pocketVersion)
Parameters
Type Name Description
String pocketVersion

What version of Pocket CRM this device is running. For example, '8.0.37'

Returns
Type Description
Void
Examples
NSPocketDeviceInfo thing;
String pocketVersion;
thing.SetPocketVersion(pocketVersion);
In This Article
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top