Class NSPocketStartupData
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Syntax
Constructors
NSPocketStartupData()
Initializes a new instance of the NSPocketStartupData class.
Declaration
NSPocketStartupData
Methods
GetBaseLocaleTimeZoneData()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
NSTimeZoneData GetBaseLocaleTimeZoneData()
Returns
Type | Description |
---|---|
NSTimeZoneData |
Examples
NSPocketStartupData thing;
NSTimeZoneData baseLocaleTimeZoneData = thing.GetBaseLocaleTimeZoneData();
GetCustomData()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
String GetCustomData()
Returns
Type | Description |
---|---|
String | Custom data for Pocket, in JSON format. |
Examples
NSPocketStartupData thing;
String customData = thing.GetCustomData();
GetIsPushNotificationEnabled()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Bool GetIsPushNotificationEnabled()
Returns
Type | Description |
---|---|
Bool | Is push notification configured and enabled in Netserver. |
Examples
NSPocketStartupData thing;
Bool isPushNotificationEnabled = thing.GetIsPushNotificationEnabled();
GetNotificationsCount()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Integer GetNotificationsCount()
Returns
Type | Description |
---|---|
Integer | Number of new invitations. |
Examples
NSPocketStartupData thing;
Integer notificationsCount = thing.GetNotificationsCount();
GetOverdueSalesCount()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Integer GetOverdueSalesCount()
Returns
Type | Description |
---|---|
Integer | Number of overdue sales for current user. |
Examples
NSPocketStartupData thing;
Integer overdueSalesCount = thing.GetOverdueSalesCount();
GetPhoneLocaleTimeZoneData()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
NSTimeZoneData GetPhoneLocaleTimeZoneData()
Returns
Type | Description |
---|---|
NSTimeZoneData |
Examples
NSPocketStartupData thing;
NSTimeZoneData phoneLocaleTimeZoneData = thing.GetPhoneLocaleTimeZoneData();
GetPocketPreferences()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
NSPreference[] GetPocketPreferences()
Returns
Type | Description |
---|---|
NSPreference[] | All Pocket specific preferences, including WebPanels defined by the user in Pocket. |
Examples
NSPocketStartupData thing;
NSPreference[] pocketPreferences = thing.GetPocketPreferences();
GetSystemWebPanels()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
NSWebPanelEntity[] GetSystemWebPanels()
Returns
Type | Description |
---|---|
NSWebPanelEntity[] | Web panels defined in Admin client, set to be shown in Pocket client. |
Examples
NSPocketStartupData thing;
NSWebPanelEntity[] systemWebPanels = thing.GetSystemWebPanels();
GetTableRights()
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Integer[] GetTableRights()
Returns
Type | Description |
---|---|
Integer[] | List of table rights for logged in user, in the same order as the Tables array parameter. See ETableRight. |
Examples
NSPocketStartupData thing;
Integer[] tableRights = thing.GetTableRights();
SetBaseLocaleTimeZoneData(NSTimeZoneData)
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetBaseLocaleTimeZoneData(NSTimeZoneData baseLocaleTimeZoneData)
Parameters
Type | Name | Description |
---|---|---|
NSTimeZoneData | baseLocaleTimeZoneData |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
NSTimeZoneData baseLocaleTimeZoneData;
thing.SetBaseLocaleTimeZoneData(baseLocaleTimeZoneData);
SetCustomData(String)
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetCustomData(String customData)
Parameters
Type | Name | Description |
---|---|---|
String | customData | Custom data for Pocket, in JSON format. |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
String customData;
thing.SetCustomData(customData);
SetIsPushNotificationEnabled(Bool)
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetIsPushNotificationEnabled(Bool isPushNotificationEnabled)
Parameters
Type | Name | Description |
---|---|---|
Bool | isPushNotificationEnabled | Is push notification configured and enabled in Netserver. |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
Bool isPushNotificationEnabled;
thing.SetIsPushNotificationEnabled(isPushNotificationEnabled);
SetNotificationsCount(Integer)
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetNotificationsCount(Integer notificationsCount)
Parameters
Type | Name | Description |
---|---|---|
Integer | notificationsCount | Number of new invitations. |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
Integer notificationsCount;
thing.SetNotificationsCount(notificationsCount);
SetOverdueSalesCount(Integer)
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetOverdueSalesCount(Integer overdueSalesCount)
Parameters
Type | Name | Description |
---|---|---|
Integer | overdueSalesCount | Number of overdue sales for current user. |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
Integer overdueSalesCount;
thing.SetOverdueSalesCount(overdueSalesCount);
SetPhoneLocaleTimeZoneData(NSTimeZoneData)
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetPhoneLocaleTimeZoneData(NSTimeZoneData phoneLocaleTimeZoneData)
Parameters
Type | Name | Description |
---|---|---|
NSTimeZoneData | phoneLocaleTimeZoneData |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
NSTimeZoneData phoneLocaleTimeZoneData;
thing.SetPhoneLocaleTimeZoneData(phoneLocaleTimeZoneData);
SetPocketPreferences(NSPreference[])
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetPocketPreferences(NSPreference[] pocketPreferences)
Parameters
Type | Name | Description |
---|---|---|
NSPreference[] | pocketPreferences | All Pocket specific preferences, including WebPanels defined by the user in Pocket. |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
NSPreference[] pocketPreferences;
thing.SetPocketPreferences(pocketPreferences);
SetSystemWebPanels(NSWebPanelEntity[])
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetSystemWebPanels(NSWebPanelEntity[] systemWebPanels)
Parameters
Type | Name | Description |
---|---|---|
NSWebPanelEntity[] | systemWebPanels | Web panels defined in Admin client, set to be shown in Pocket client. |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
NSWebPanelEntity[] systemWebPanels;
thing.SetSystemWebPanels(systemWebPanels);
SetTableRights(Integer[])
The Pocket Service. The service implements pocket specific stuff, like consolidated post-login stuff.
Declaration
Void SetTableRights(Integer[] 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 ETableRight. |
Returns
Type | Description |
---|---|
Void |
Examples
NSPocketStartupData thing;
Integer[] tableRights;
thing.SetTableRights(tableRights);