Added GetName(UI/Data) to Service class.

This commit is contained in:
Major Cooke 2023-06-13 14:30:17 -05:00 committed by Christoph Oelckers
parent 4b49d9d185
commit 0c9bd9282c
1 changed files with 16 additions and 0 deletions

View File

@ -34,6 +34,12 @@ class Service abstract
return null;
}
virtual play Name GetName(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null, Name nameArg = '')
{
return '';
}
// UI variants
virtual ui String GetStringUI(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null)
{
@ -55,6 +61,11 @@ class Service abstract
return null;
}
virtual ui Name GetNameUI(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null, Name nameArg = '')
{
return '';
}
// data/clearscope variants
virtual clearscope String GetStringData(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null)
{
@ -75,6 +86,11 @@ class Service abstract
{
return null;
}
virtual clearscope Name GetNameData(String request, string stringArg = "", int intArg = 0, double doubleArg = 0, Object objectArg = null, Name nameArg = '')
{
return '';
}
static Service Find(class<Service> serviceName){
return AllServices.GetIfExists(serviceName.GetClassName());