@@ -35,12 +35,13 @@ TWebServiceInfo = record
35
35
// / <summary>MIME type of media used by web service.</summary>
36
36
MediaType: string;
37
37
// / <summary>Constructs a record with given field values.</summary>
38
- // / <param name="AScriptURLTplt">string [in] Template for web service's
39
- // / URI.</param>
40
- // / <param name="AUserAgent">string [in] User agent to use when accessing
41
- // / web service.</param>
42
- // / <param name="AMediaType">string [in] Optional. Media type used by web
43
- // / service.</param>
38
+ // / <param name="AScriptURLTplt"><c>string</c> [in] Template for web
39
+ // / service's URI. Must contain a single '%s' placeholder for web host.
40
+ // / </param>
41
+ // / <param name="AUserAgent"><c>string</c> [in] User agent to use when
42
+ // / accessing web service.</param>
43
+ // / <param name="AMediaType"><c>string</c> [in] Optional. Media type used
44
+ // / by web service.</param>
44
45
constructor Create(const AScriptURLTplt, AUserAgent: string;
45
46
const AMediaType: string = ' text/*' );
46
47
end ;
@@ -77,13 +78,15 @@ TWebInfo = class(TNoConstructObject)
77
78
WebsiteURL = ' http://' + ProductionServerHost;
78
79
// / <summary>Template for URL of Code Snippets news feed.</summary>
79
80
// / <remarks>'%d' placeholder must be replaced by the required number of
80
- // / days into the past the news feed should cover.</remarks>
81
+ // / days into the past the news feed should cover. Passing <c>0</c> as
82
+ // / the number of days results in all news items being returned.
83
+ // / </remarks>
81
84
NewsFeedTplt = WebSiteURL + ' /feeds/site-news-feed?id=codesnip&days=%d' ;
82
85
strict private
83
86
// / <summary>Returns the name of the server that hosts web services that
84
87
// / are used by CodeSnip.</summary>
85
88
// / <remarks>By default is the production server (as specified by the
86
- // / <c>ProductionServerHost</c> constant. CodeSnip will instead use a
89
+ // / <c>ProductionServerHost</c> constant) . CodeSnip will instead use a
87
90
// / test server (as returned by the <c>TestServerHost</c> method) if the
88
91
// / name and port of the test server is passed on the command line via the
89
92
// / <c>--test-server</c> command line option.</remarks>
@@ -98,11 +101,15 @@ TWebInfo = class(TNoConstructObject)
98
101
DatabaseURL = WebsiteURL + ' /url/csdb' ;
99
102
// / <summary>URL used to make donations towards the CodeSnip project.
100
103
// / </summary>
101
- // / <summary >This URL redirects to the correct page on PayPal.</summary >
104
+ // / <remarks >This URL redirects to the correct page on PayPal.</remarks >
102
105
DonateURL = WebsiteURL + ' /url/donate-cs' ;
103
106
// / <summary>URL used to view and report CodeSnip bugs.</summary>
107
+ // / <remarks>This URL will redirect to the actual bug tracker which may
108
+ // / be on an external site such as SourceForge or GitHub.</remarks>
104
109
BugTrackerURL = WebsiteURL + ' /url/codesnip-bugs' ;
105
110
// / <summary>URL of CodeSnip's FAQ web page.</summary>
111
+ // / <remarks>This URL will redirect to the FAQ location which may be on
112
+ // / an external site such as GitHub or SourceForge.</remarks>
106
113
FAQsURL = WebsiteURL + ' /url/codesnip-faq' ;
107
114
public
108
115
// / <summary>Returns the name of the server that hosts web services used by
@@ -124,14 +131,14 @@ TWebInfo = class(TNoConstructObject)
124
131
// / </remarks>
125
132
class function TestServerHost : string;
126
133
// / <summary>Builds the URL of the CodeSnip news feed.</summary>
127
- // / <param name="Age">Word [in] Maximum age, in days, of news items to be
128
- // / included in the feed.</param>
129
- // / <returns>string. Required URL.</returns>
134
+ // / <param name="Age"><c> Word</c> [in] Maximum age, in days, of news items
135
+ // / to be included in the feed.</param>
136
+ // / <returns><c> string</c> . Required URL.</returns>
130
137
class function NewsFeedURL (const Age: Word): string;
131
138
// / <summary>Builds the URL of a web service.</summary>
132
- // / <param name="URLTplt">string. [in] Template of URL of web service
133
- // / script. Must contain a '%s' placeholder for host name.</param>
134
- // / <returns>string. Required URL.</returns>
139
+ // / <param name="URLTplt"><c> string</c> . [in] Template of URL of web
140
+ // / service script. Must contain a '%s' placeholder for host name.</param>
141
+ // / <returns><c> string</c> . Required URL.</returns>
135
142
class function WebServiceURL (const URLTplt: string): string;
136
143
// / <summary>Gets information about any required web proxy.</summary>
137
144
// / <remarks>The web proxy information is read from settings.</remarks>
@@ -142,10 +149,9 @@ TWebInfo = class(TNoConstructObject)
142
149
// / </returns>
143
150
// / <remarks>
144
151
// / <para><c>True</c> is returned iff a valid <c>--test-server</c> command
145
- // / line option was supplied on the command line .</para>
152
+ // / line option was supplied.</para>
146
153
// / <para><c>--test-server</c> should only be specified by developers with
147
154
// / access to a suitable test server.</para>
148
-
149
155
// / </remarks>
150
156
class function UsingTestServer : Boolean;
151
157
end ;
0 commit comments