> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSPocketDeviceInfo

> Describes a device running Pocket CRM.

Describes a device running Pocket CRM.

## Constructors

### NSPocketDeviceInfo()

```crmscript theme={null}
NSPocketDeviceInfo
```

Initializes a new instance of the NSPocketDeviceInfo class.

## Methods

## GetDeviceIdentifier()

```crmscript theme={null}
String GetDeviceIdentifier()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - A unique identifier of this device. This value should always be the same for the same device.

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String deviceIdentifier = thing.GetDeviceIdentifier();
```

## GetDeviceName()

```crmscript theme={null}
String GetDeviceName()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - A friendly display name for the device. For example, 'Bobbys iPhone 5S'.

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String deviceName = thing.GetDeviceName();
```

## GetLanguage()

```crmscript theme={null}
String GetLanguage()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The language which this device will receive notifications translated in.

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String language = thing.GetLanguage();
```

## GetOSVersion()

```crmscript theme={null}
String GetOSVersion()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The operating system version. For example, 'iOS v10.2.

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String oSVersion = thing.GetOSVersion();
```

## GetPlatform()

```crmscript theme={null}
Integer GetPlatform()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - What platform does this device belong to. See \<xref href="CRMScript.NetServer.NotificationPlatform" data-throw-if-not-resolved="false">\</xref>.

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
Integer platform = thing.GetPlatform();
```

## GetPNSHandle()

```crmscript theme={null}
String GetPNSHandle()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The identifier associated with the device that will be used when talking with vendors push services.

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String pNSHandle = thing.GetPNSHandle();
```

## GetPocketVersion()

```crmscript theme={null}
String GetPocketVersion()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - What version of Pocket CRM this device is running. For example, '8.0.37'

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String pocketVersion = thing.GetPocketVersion();
```

## SetDeviceIdentifier(String)

```crmscript theme={null}
Void SetDeviceIdentifier(String deviceIdentifier)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String deviceIdentifier;
thing.SetDeviceIdentifier(deviceIdentifier);
```

## SetDeviceName(String)

```crmscript theme={null}
Void SetDeviceName(String deviceName)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String deviceName;
thing.SetDeviceName(deviceName);
```

## SetLanguage(String)

```crmscript theme={null}
Void SetLanguage(String language)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String language;
thing.SetLanguage(language);
```

## SetOSVersion(String)

```crmscript theme={null}
Void SetOSVersion(String oSVersion)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String oSVersion;
thing.SetOSVersion(oSVersion);
```

## SetPlatform(Integer)

```crmscript theme={null}
Void SetPlatform(Integer platform)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
Integer platform;
thing.SetPlatform(platform);
```

## SetPNSHandle(String)

```crmscript theme={null}
Void SetPNSHandle(String pNSHandle)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String pNSHandle;
thing.SetPNSHandle(pNSHandle);
```

## SetPocketVersion(String)

```crmscript theme={null}
Void SetPocketVersion(String pocketVersion)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSPocketDeviceInfo thing;
String pocketVersion;
thing.SetPocketVersion(pocketVersion);
```


## Related topics

- [NSPocketAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSPocketAgent.md)
- [SuperOffice.WebApi.Data.PocketDeviceInfo](/en/api/reference/webapi/SuperOffice.WebApi.Data.PocketDeviceInfo.md)
- [SuperOffice.WebApi.Agents.PocketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.PocketAgent.md)
- [SuperOffice.WebApi.Agents.IPocketAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IPocketAgent.md)
- [Register Device For Push Notification](/en/api/reference/restful/agent/pocket_agent/register-device-for-push-notification.md)
- [Get Registered Devices](/en/api/reference/restful/agent/pocket_agent/get-registered-devices.md)
