Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b57ec17

Browse files
committed
Generate @deprecated for obsolete elements.
1 parent f9113fd commit b57ec17

File tree

4 files changed

+152
-17
lines changed

4 files changed

+152
-17
lines changed

SolutionInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Reflection;
22

3-
[assembly: AssemblyVersion("1.1.0.0")]
3+
[assembly: AssemblyVersion("1.2.0.0")]
44
[assembly: AssemblyCompany("")]
55
[assembly: AssemblyCopyright("Copyright 2016-2017 Ed Ball")]
66
[assembly: AssemblyTrademark("")]

example/js/exampleApi.js

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ExampleApiHttpClient {
2424
this._fetch = fetch;
2525
this._baseUri = baseUri;
2626
}
27+
2728
/** Gets widgets. */
2829
getWidgets(request) {
2930
let uri = 'widgets';
@@ -58,6 +59,7 @@ class ExampleApiHttpClient {
5859
return { value: value };
5960
});
6061
}
62+
6163
/** Creates a new widget. */
6264
createWidget(request) {
6365
const uri = 'widgets';
@@ -81,6 +83,7 @@ class ExampleApiHttpClient {
8183
return { value: value };
8284
});
8385
}
86+
8487
/** Gets the specified widget. */
8588
getWidget(request) {
8689
const uriPartId = request.id != null && encodeURIComponent(request.id);
@@ -117,6 +120,7 @@ class ExampleApiHttpClient {
117120
return { value: value };
118121
});
119122
}
123+
120124
/** Deletes the specified widget. */
121125
deleteWidget(request) {
122126
const uriPartId = request.id != null && encodeURIComponent(request.id);
@@ -142,6 +146,7 @@ class ExampleApiHttpClient {
142146
return { value: value };
143147
});
144148
}
149+
145150
/** Edits widget. */
146151
editWidget(request) {
147152
const uriPartId = request.id != null && encodeURIComponent(request.id);
@@ -175,6 +180,7 @@ class ExampleApiHttpClient {
175180
return { value: value };
176181
});
177182
}
183+
178184
/** Gets the specified widgets. */
179185
getWidgetBatch(request) {
180186
const uri = 'widgets/get';
@@ -198,7 +204,11 @@ class ExampleApiHttpClient {
198204
return { value: value };
199205
});
200206
}
201-
/** Gets the widget weight. */
207+
208+
/**
209+
* Gets the widget weight.
210+
* @deprecated
211+
*/
202212
getWidgetWeight(request) {
203213
const uriPartId = request.id != null && encodeURIComponent(request.id);
204214
if (!uriPartId) {
@@ -223,6 +233,7 @@ class ExampleApiHttpClient {
223233
return { value: value };
224234
});
225235
}
236+
226237
/** Gets a widget preference. */
227238
getPreference(request) {
228239
const uriPartKey = request.key != null && encodeURIComponent(request.key);
@@ -248,6 +259,7 @@ class ExampleApiHttpClient {
248259
return { value: value };
249260
});
250261
}
262+
251263
/** Sets a widget preference. */
252264
setPreference(request) {
253265
const uriPartKey = request.key != null && encodeURIComponent(request.key);
@@ -275,6 +287,7 @@ class ExampleApiHttpClient {
275287
return { value: value };
276288
});
277289
}
290+
278291
/** Gets service info. */
279292
getInfo(request) {
280293
const uri = '';
@@ -296,6 +309,7 @@ class ExampleApiHttpClient {
296309
return { value: value };
297310
});
298311
}
312+
299313
/** Demonstrates the default HTTP behavior. */
300314
notRestful(request) {
301315
const uri = 'notRestful';
@@ -317,6 +331,7 @@ class ExampleApiHttpClient {
317331
return { value: value };
318332
});
319333
}
334+
320335
kitchen(request) {
321336
const uri = 'kitchen';
322337
const fetchRequest = {

0 commit comments

Comments
 (0)