Rev | Line | |
---|
[391] | 1 | namespace Webserver.WebAPI {
|
---|
| 2 | public abstract class AbsWebAPI {
|
---|
| 3 | public readonly string Name;
|
---|
[410] | 4 | protected readonly Web ParentWeb;
|
---|
[391] | 5 |
|
---|
[410] | 6 | protected AbsWebAPI (string _name = null) : this(null, _name) {
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | protected AbsWebAPI (Web _parentWeb, string _name = null) {
|
---|
[391] | 10 | Name = _name ?? GetType ().Name;
|
---|
[410] | 11 | ParentWeb = _parentWeb;
|
---|
[391] | 12 | }
|
---|
| 13 |
|
---|
| 14 | public abstract void HandleRequest (RequestContext _context);
|
---|
| 15 |
|
---|
[410] | 16 | public virtual int DefaultPermissionLevel () => 0;
|
---|
[391] | 17 | }
|
---|
| 18 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.