Skip to content

Commit 47149c4

Browse files
author
DelphiDabbler
committed
Updated and corrected XMLDoc comments
1 parent 73ebfa5 commit 47149c4

File tree

1 file changed

+23
-17
lines changed

1 file changed

+23
-17
lines changed

Src/Web.UInfo.pas

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ TWebServiceInfo = record
3535
/// <summary>MIME type of media used by web service.</summary>
3636
MediaType: string;
3737
/// <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>
4445
constructor Create(const AScriptURLTplt, AUserAgent: string;
4546
const AMediaType: string = 'text/*');
4647
end;
@@ -77,13 +78,15 @@ TWebInfo = class(TNoConstructObject)
7778
WebsiteURL = 'http://' + ProductionServerHost;
7879
/// <summary>Template for URL of Code Snippets news feed.</summary>
7980
/// <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>
8184
NewsFeedTplt = WebSiteURL + '/feeds/site-news-feed?id=codesnip&days=%d';
8285
strict private
8386
/// <summary>Returns the name of the server that hosts web services that
8487
/// are used by CodeSnip.</summary>
8588
/// <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
8790
/// test server (as returned by the <c>TestServerHost</c> method) if the
8891
/// name and port of the test server is passed on the command line via the
8992
/// <c>--test-server</c> command line option.</remarks>
@@ -98,11 +101,15 @@ TWebInfo = class(TNoConstructObject)
98101
DatabaseURL = WebsiteURL + '/url/csdb';
99102
/// <summary>URL used to make donations towards the CodeSnip project.
100103
/// </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>
102105
DonateURL = WebsiteURL + '/url/donate-cs';
103106
/// <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>
104109
BugTrackerURL = WebsiteURL + '/url/codesnip-bugs';
105110
/// <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>
106113
FAQsURL = WebsiteURL + '/url/codesnip-faq';
107114
public
108115
/// <summary>Returns the name of the server that hosts web services used by
@@ -124,14 +131,14 @@ TWebInfo = class(TNoConstructObject)
124131
/// </remarks>
125132
class function TestServerHost: string;
126133
/// <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>
130137
class function NewsFeedURL(const Age: Word): string;
131138
/// <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>
135142
class function WebServiceURL(const URLTplt: string): string;
136143
/// <summary>Gets information about any required web proxy.</summary>
137144
/// <remarks>The web proxy information is read from settings.</remarks>
@@ -142,10 +149,9 @@ TWebInfo = class(TNoConstructObject)
142149
/// </returns>
143150
/// <remarks>
144151
/// <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>
146153
/// <para><c>--test-server</c> should only be specified by developers with
147154
/// access to a suitable test server.</para>
148-
149155
/// </remarks>
150156
class function UsingTestServer: Boolean;
151157
end;

0 commit comments

Comments
 (0)