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

View file

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