Class UserPreferenceDefaults
Defines user preference default values
Namespace: SuperOffice
Assembly: SoCore.dll
Syntax
public static class UserPreferenceDefaults : Object
Fields
AllDayEndTime
All day/work day ends at 16:00
Declaration
public const int AllDayEndTime = 57600
Field Value
Type | Description |
---|---|
Int32 |
AllDayStartTime
All day/work day starts at 08:00
Declaration
public const int AllDayStartTime = 28800
Field Value
Type | Description |
---|---|
Int32 |
DefaultAlarmTime
Default alarm lead time for DefaultAlarmTime preference. (Minutes)
Declaration
public const int DefaultAlarmTime = 15
Field Value
Type | Description |
---|---|
Int32 |
DefaultHistoryListSize
The default value of the History list length
Declaration
public const int DefaultHistoryListSize = 7
Field Value
Type | Description |
---|---|
Int32 |
FilterCompletedFromTodo
Filter: Removes completed activities from the checklist
Declaration
public const bool FilterCompletedFromTodo = false
Field Value
Type | Description |
---|---|
Boolean |
GetAdvanceDays
Number of days ahead to display tasks in the checklist. Default is 21 days
Declaration
public const int GetAdvanceDays = 21
Field Value
Type | Description |
---|---|
Int32 |
LunchEndTime
Lunch ends at 13:00
Declaration
public const int LunchEndTime = 46800
Field Value
Type | Description |
---|---|
Int32 |
LunchStartTime
Lunch starts at 12:00
Declaration
public const int LunchStartTime = 43200
Field Value
Type | Description |
---|---|
Int32 |
NotifyAttendeesByMail
Default value for the "send email to attendees" preference.
Declaration
public const bool NotifyAttendeesByMail = true
Field Value
Type | Description |
---|---|
Boolean |
PollingInterval
Polling interval for invitations and alarm checks
Declaration
public const int PollingInterval = 10
Field Value
Type | Description |
---|---|
Int32 |
ShowWeekNumbersInCalendars
Default value for the show week numbers in calendars preference.
Declaration
public const bool ShowWeekNumbersInCalendars = false
Field Value
Type | Description |
---|---|
Boolean |
SilentAfter
How long an alarm should sound
Declaration
public const int SilentAfter = 5
Field Value
Type | Description |
---|---|
Int32 |
UnsafeFileTypes
Default unsafe file types
Declaration
public const string UnsafeFileTypes = "msi,exe,com,bat,cmd,ps1,dll,scr,ocx,vbs,js,lnk,php"
Field Value
Type | Description |
---|---|
String |
Methods
ValueOrDefault(Int32, Int32)
Return the actual value, unless it is 0, in which case the default value is returned
Declaration
public static int ValueOrDefault(int value, int defaultValue)
Parameters
Type | Name | Description |
---|---|---|
Int32 | value | Value to check |
Int32 | defaultValue | Default value to return |
Returns
Type | Description |
---|---|
Int32 | Value or default |
ValueOrDefault(String, String)
Return the actual value, unless it is blank, in which case the default value is returned
Declaration
public static string ValueOrDefault(string value, string defaultValue)
Parameters
Type | Name | Description |
---|---|---|
String | value | Value to check |
String | defaultValue | Default value to return |
Returns
Type | Description |
---|---|
String | Value or default |