source: binary-improvements2/WebServer/src/WebAPI/AbsWebAPI.cs@ 411

Last change on this file since 411 was 410, checked in by alloc, 21 months ago

Base API class improvements

File size: 455 bytes
RevLine 
[391]1namespace 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.