Class NSPocketStartupData

The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.

Constructors

NSPocketStartupData()

Initializes a new instance of the NSPocketStartupData class.

Declaration

NSPocketStartupData

Methods

GetBaseLocaleTimeZoneData()

Declaration

NSTimeZoneData GetBaseLocaleTimeZoneData()

Examples

NSPocketStartupData thing;
NSTimeZoneData baseLocaleTimeZoneData = thing.GetBaseLocaleTimeZoneData();

Returns

Type Description
NSTimeZoneData

GetCustomData()

Declaration

String GetCustomData()

Examples

NSPocketStartupData thing;
String customData = thing.GetCustomData();

Returns

Type Description
String Custom data for Pocket, in JSON format.

GetIsPushNotificationEnabled()

Declaration

Bool GetIsPushNotificationEnabled()

Examples

NSPocketStartupData thing;
Bool isPushNotificationEnabled = thing.GetIsPushNotificationEnabled();

Returns

Type Description
Bool Is push notification configured and enabled in Netserver.

GetNotificationsCount()

Declaration

Integer GetNotificationsCount()

Examples

NSPocketStartupData thing;
Integer notificationsCount = thing.GetNotificationsCount();

Returns

Type Description
Integer Number of new invitations.

GetOverdueSalesCount()

Declaration

Integer GetOverdueSalesCount()

Examples

NSPocketStartupData thing;
Integer overdueSalesCount = thing.GetOverdueSalesCount();

Returns

Type Description
Integer Number of overdue sales for current user.

GetPhoneLocaleTimeZoneData()

Declaration

NSTimeZoneData GetPhoneLocaleTimeZoneData()

Examples

NSPocketStartupData thing;
NSTimeZoneData phoneLocaleTimeZoneData = thing.GetPhoneLocaleTimeZoneData();

Returns

Type Description
NSTimeZoneData

GetPocketPreferences()

Declaration

NSPreference[] GetPocketPreferences()

Examples

NSPocketStartupData thing;
NSPreference[] pocketPreferences = thing.GetPocketPreferences();

Returns

Type Description
NSPreference[] All Pocket specific preferences, including WebPanels defined by the user in Pocket.

GetSystemWebPanels()

Declaration

NSWebPanelEntity[] GetSystemWebPanels()

Examples

NSPocketStartupData thing;
NSWebPanelEntity[] systemWebPanels = thing.GetSystemWebPanels();

Returns

Type Description
NSWebPanelEntity[] Web panels defined in Admin client, set to be shown in Pocket client.

GetTableRights()

Declaration

Integer[] GetTableRights()

Examples

NSPocketStartupData thing;
Integer[] tableRights = thing.GetTableRights();

Returns

Type Description
Integer[] List of table rights for logged in user, in the same order as the Tables array parameter. See <xref href="CRMScript.NetServer.ETableRight" data-throw-if-not-resolved="false"></xref>.

SetBaseLocaleTimeZoneData(NSTimeZoneData)

Declaration

Void SetBaseLocaleTimeZoneData(NSTimeZoneData baseLocaleTimeZoneData)

Examples

NSPocketStartupData thing;
NSTimeZoneData baseLocaleTimeZoneData;
thing.SetBaseLocaleTimeZoneData(baseLocaleTimeZoneData);

Parameters

Type Name Description
NSTimeZoneData baseLocaleTimeZoneData

Returns

Type Description
Void

SetCustomData(String)

Declaration

Void SetCustomData(String customData)

Examples

NSPocketStartupData thing;
String customData;
thing.SetCustomData(customData);

Parameters

Type Name Description
String customData Custom data for Pocket, in JSON format.

Returns

Type Description
Void

SetIsPushNotificationEnabled(Bool)

Declaration

Void SetIsPushNotificationEnabled(Bool isPushNotificationEnabled)

Examples

NSPocketStartupData thing;
Bool isPushNotificationEnabled;
thing.SetIsPushNotificationEnabled(isPushNotificationEnabled);

Parameters

Type Name Description
Bool isPushNotificationEnabled Is push notification configured and enabled in Netserver.

Returns

Type Description
Void

SetNotificationsCount(Integer)

Declaration

Void SetNotificationsCount(Integer notificationsCount)

Examples

NSPocketStartupData thing;
Integer notificationsCount;
thing.SetNotificationsCount(notificationsCount);

Parameters

Type Name Description
Integer notificationsCount Number of new invitations.

Returns

Type Description
Void

SetOverdueSalesCount(Integer)

Declaration

Void SetOverdueSalesCount(Integer overdueSalesCount)

Examples

NSPocketStartupData thing;
Integer overdueSalesCount;
thing.SetOverdueSalesCount(overdueSalesCount);

Parameters

Type Name Description
Integer overdueSalesCount Number of overdue sales for current user.

Returns

Type Description
Void

SetPhoneLocaleTimeZoneData(NSTimeZoneData)

Declaration

Void SetPhoneLocaleTimeZoneData(NSTimeZoneData phoneLocaleTimeZoneData)

Examples

NSPocketStartupData thing;
NSTimeZoneData phoneLocaleTimeZoneData;
thing.SetPhoneLocaleTimeZoneData(phoneLocaleTimeZoneData);

Parameters

Type Name Description
NSTimeZoneData phoneLocaleTimeZoneData

Returns

Type Description
Void

SetPocketPreferences(NSPreference[])

Declaration

Void SetPocketPreferences(NSPreference[] pocketPreferences)

Examples

NSPocketStartupData thing;
NSPreference[] pocketPreferences;
thing.SetPocketPreferences(pocketPreferences);

Parameters

Type Name Description
NSPreference[] pocketPreferences All Pocket specific preferences, including WebPanels defined by the user in Pocket.

Returns

Type Description
Void

SetSystemWebPanels(NSWebPanelEntity[])

Declaration

Void SetSystemWebPanels(NSWebPanelEntity[] systemWebPanels)

Examples

NSPocketStartupData thing;
NSWebPanelEntity[] systemWebPanels;
thing.SetSystemWebPanels(systemWebPanels);

Parameters

Type Name Description
NSWebPanelEntity[] systemWebPanels Web panels defined in Admin client, set to be shown in Pocket client.

Returns

Type Description
Void

SetTableRights(Integer[])

Declaration

Void SetTableRights(Integer[] tableRights)

Examples

NSPocketStartupData thing;
Integer[] tableRights;
thing.SetTableRights(tableRights);

Parameters

Type Name Description
Integer[] tableRights List of table rights for logged in user, in the same order as the Tables array parameter. See <xref href="CRMScript.NetServer.ETableRight" data-throw-if-not-resolved="false"></xref>.

Returns

Type Description
Void