Class NSPocketDeviceInfo
Describes a device running Pocket CRM.
Constructors
NSPocketDeviceInfo()
Initializes a new instance of the NSPocketDeviceInfo class.
Declaration
NSPocketDeviceInfo Methods
GetDeviceIdentifier()
Declaration
String GetDeviceIdentifier() Examples
NSPocketDeviceInfo thing;
String deviceIdentifier = thing.GetDeviceIdentifier();
Returns
| Type | Description |
| String | A unique identifier of this device. This value should always be the same for the same device. |
GetDeviceName()
Declaration
String GetDeviceName() Examples
NSPocketDeviceInfo thing;
String deviceName = thing.GetDeviceName();
Returns
| Type | Description |
| String | A friendly display name for the device. For example, 'Bobbys iPhone 5S'. |
GetLanguage()
Declaration
String GetLanguage() Examples
NSPocketDeviceInfo thing;
String language = thing.GetLanguage();
Returns
| Type | Description |
| String | The language which this device will receive notifications translated in. |
GetOSVersion()
Declaration
String GetOSVersion() Examples
NSPocketDeviceInfo thing;
String oSVersion = thing.GetOSVersion();
Returns
| Type | Description |
| String | The operating system version. For example, 'iOS v10.2. |
GetPlatform()
Declaration
Integer GetPlatform() Examples
NSPocketDeviceInfo thing;
Integer platform = thing.GetPlatform();
Returns
| Type | Description |
| Integer | What platform does this device belong to. See <xref href="CRMScript.NetServer.NotificationPlatform" data-throw-if-not-resolved="false"></xref>. |
GetPNSHandle()
Declaration
String GetPNSHandle() Examples
NSPocketDeviceInfo thing;
String pNSHandle = thing.GetPNSHandle();
Returns
| Type | Description |
| String | The identifier associated with the device that will be used when talking with vendors push services. |
GetPocketVersion()
Declaration
String GetPocketVersion() Examples
NSPocketDeviceInfo thing;
String pocketVersion = thing.GetPocketVersion();
Returns
| Type | Description |
| String | What version of Pocket CRM this device is running. For example, '8.0.37' |
SetDeviceIdentifier(String)
Declaration
Void SetDeviceIdentifier(String deviceIdentifier) Examples
NSPocketDeviceInfo thing;
String deviceIdentifier;
thing.SetDeviceIdentifier(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 |
SetDeviceName(String)
Declaration
Void SetDeviceName(String deviceName) Examples
NSPocketDeviceInfo thing;
String deviceName;
thing.SetDeviceName(deviceName);
Parameters
| Type | Name | Description |
| String | deviceName | A friendly display name for the device. For example, 'Bobbys iPhone 5S'. |
Returns
| Type | Description |
| Void |
SetLanguage(String)
Declaration
Void SetLanguage(String language) Examples
NSPocketDeviceInfo thing;
String language;
thing.SetLanguage(language);
Parameters
| Type | Name | Description |
| String | language | The language which this device will receive notifications translated in. |
Returns
| Type | Description |
| Void |
SetOSVersion(String)
Declaration
Void SetOSVersion(String oSVersion) Examples
NSPocketDeviceInfo thing;
String oSVersion;
thing.SetOSVersion(oSVersion);
Parameters
| Type | Name | Description |
| String | oSVersion | The operating system version. For example, 'iOS v10.2'. |
Returns
| Type | Description |
| Void |
SetPlatform(Integer)
Declaration
Void SetPlatform(Integer platform) Examples
NSPocketDeviceInfo thing;
Integer platform;
thing.SetPlatform(platform);
Parameters
| Type | Name | Description |
| Integer | platform | What platform does this device belong to. See <xref href="CRMScript.NetServer.NotificationPlatform" data-throw-if-not-resolved="false"></xref>. |
Returns
| Type | Description |
| Void |
SetPNSHandle(String)
Declaration
Void SetPNSHandle(String pNSHandle) Examples
NSPocketDeviceInfo thing;
String pNSHandle;
thing.SetPNSHandle(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 |
SetPocketVersion(String)
Declaration
Void SetPocketVersion(String pocketVersion) Examples
NSPocketDeviceInfo thing;
String pocketVersion;
thing.SetPocketVersion(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 |