NTP Analyzer
0.8.2
Analyze the operation of time servers
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
AboutPageConfiguration.cs
Go to the documentation of this file.
1
//
2
// Copyright (c) 2013-2017 Carsten Sonne Larsen <cs@innolan.net>
3
//
4
// Permission is hereby granted, free of charge, to any person obtaining a copy
5
// of this software and associated documentation files (the "Software"), to deal
6
// in the Software without restriction, including without limitation the rights
7
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
// copies of the Software, and to permit persons to whom the Software is
9
// furnished to do so, subject to the following conditions:
10
//
11
// The above copyright notice and this permission notice shall be included in
12
// all copies or substantial portions of the Software.
13
//
14
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20
// THE SOFTWARE.
21
22
using
System
;
23
using
Ntp
.
Analyzer
.
Config
.
Attribute
;
24
using
Ntp
.
Analyzer
.
Config
.
Node
.
Destination
;
25
using
Ntp
.
Analyzer
.
Config
.
Node
.
Navigation
;
26
using
Ntp
.
Analyzer
.
Config
.
Table
;
27
using
Ntp
.
Common
.
Process
;
28
29
namespace
Ntp
.Analyzer.Config.Node.
Page
30
{
31
public
sealed
class
AboutPageConfiguration
:
PageConfigurationNode
,
IJobConfiguration
,
ILinkable
32
{
33
internal
AboutPageConfiguration
(
34
string
name,
35
int
? frequency,
36
bool
? initialRun,
37
bool
? fixedRun,
38
string
title,
39
PageTheme
? theme,
40
int
? serverId,
41
string
header,
42
string
content,
43
Uri link,
44
DestinationCollection
destinations)
45
: base(name, destinations, link)
46
{
47
this.frequency = frequency;
48
this.initialRun = initialRun;
49
this.fixedRun = fixedRun;
50
this.theme = theme;
51
ConfigLink = link;
52
Title = title;
53
ServerId = serverId;
54
Header
= header;
55
Content = content;
56
}
57
58
private
readonly
bool
?
fixedRun
;
59
private
readonly
int
?
frequency
;
60
private
readonly
bool
?
initialRun
;
61
private
readonly
PageTheme
?
theme
;
62
63
[
NtpaIndex
(11)]
64
[
NtpaSetting
(
Symbol
.KeywordPageTemplate,
PageTheme
.Bootstrap)]
65
public
override
PageTheme
Theme => theme ??
PageTheme
.Bootstrap;
66
67
[
NtpaIndex
(10)]
68
[
NtpaSetting
(
Symbol
.KeywordPageTitle,
Layout
=
Layout
.Quoted)]
69
public
override
string
Title {
get
; }
70
71
[
NtpaIndex
(50)]
72
[
NtpaSetting
(
Symbol
.KeywordContentTitle,
Layout
=
Layout
.Quoted)]
73
public
string
Header
{
get
; }
74
75
[
NtpaIndex
(12)]
76
[
NtpaSetting
(
Symbol
.KeywordServerId)]
77
public
int
? ServerId {
get
; }
78
79
[
NtpaIndex
(51)]
80
[
NtpaSetting
(
Symbol
.KeywordContent,
Layout
=
Layout
.Block)]
81
public
string
Content {
get
; }
82
83
[
NtpaIndex
(13)]
84
[
NtpaSetting
(
Symbol
.KeywordLink)]
85
public
Uri ConfigLink {
get
; }
86
87
[
NtpaIndex
(1)]
88
[
NtpaSetting
(
Symbol
.KeywordFrequency, 0)]
89
public
int
Frequency => frequency ?? 0;
90
91
[
NtpaIndex
(2)]
92
[
NtpaSetting
(
Symbol
.KeywordInitialRun,
true
)]
93
public
bool
InitialRun => initialRun ??
true
;
94
95
[
NtpaIndex
(3)]
96
[
NtpaSetting
(
Symbol
.KeywordFixedRun,
false
)]
97
public
bool
FixedRun => fixedRun ??
false
;
98
}
99
}
Ntp.Analyzer.Config.Node.Page.AboutPageConfiguration.frequency
readonly int frequency
Definition:
AboutPageConfiguration.cs:59
Ntp.Analyzer.Config
Ntp.Analyzer.Config.Node.Navigation.MenuItemType.Header
Ntp.Analyzer.Config.Attribute.Layout
Layout
Definition:
Layout.cs:24
Ntp.Common.Process.IJobConfiguration
Definition:
IJobConfiguration.cs:24
Ntp.Analyzer.Config.Node.Page.AboutPageConfiguration.AboutPageConfiguration
AboutPageConfiguration(string name, int?frequency, bool?initialRun, bool?fixedRun, string title, PageTheme?theme, int?serverId, string header, string content, Uri link, DestinationCollection destinations)
Definition:
AboutPageConfiguration.cs:33
Ntp.Analyzer.Config.Attribute.NtpaSetting
Definition:
NtpaSetting.cs:28
Ntp.Common
Ntp.Analyzer.Config.Node.Page.AboutPageConfiguration
Definition:
AboutPageConfiguration.cs:31
Ntp.Analyzer.Config.Table
Definition:
IntegerToken.cs:22
Ntp.Analyzer.Config.Node.Page.AboutPageConfiguration.initialRun
readonly bool initialRun
Definition:
AboutPageConfiguration.cs:60
Ntp
Ntp.Analyzer.Config.Node.Page.AboutPageConfiguration.fixedRun
readonly bool fixedRun
Definition:
AboutPageConfiguration.cs:58
Ntp.Analyzer.Config.Node.Navigation.ILinkable
Definition:
ILinkable.cs:26
Ntp.Analyzer.Config.Node.Page.PageConfigurationNode
Definition:
PageConfigurationBase.cs:31
System
Ntp.Analyzer.Config.Node.Navigation
Definition:
DropdownItemConfiguration.cs:26
Ntp.Analyzer.Config.Node.Page.AboutPageConfiguration.theme
readonly PageTheme theme
Definition:
AboutPageConfiguration.cs:61
Ntp.Analyzer.Config.Node.Destination
Definition:
DestinationCollection.cs:27
Ntp.Analyzer.Config.Table.Symbol
Symbol
Definition:
Symbol.cs:24
Ntp.Analyzer.Config.Node.Page.PageTheme
PageTheme
Definition:
PageTheme.cs:24
Ntp.Analyzer.Config.Node
Definition:
ClusterConfiguration.cs:24
Ntp.Analyzer.Config.Attribute.NtpaIndex
Definition:
NtpaIndex.cs:27
Ntp.Analyzer.Config.Node.Destination.DestinationCollection
Definition:
DestinationCollection.cs:29
Ntp.Analyzer.Config.Node.Navigation.MenuItemType.Page
Ntp.Analyzer
Ntp.Common.Process
Definition:
Cluster.cs:29
Ntp.Analyzer.Config.Attribute
Definition:
Layout.cs:22
Ntp.Analyzer
Config
Node
Page
AboutPageConfiguration.cs
Generated by
1.8.11