我很感激您在调试以下问题时提供的帮助:
Toolbox
public static StdResult createLine(string extension, string site, string CSSLevel, string label)
{
...
StandardResponse res = AXLAPIServiceSingleton.getInstance().addLine(req);
**// Return of a new custom object a the result**
return new StdResult(StdResVal.SUCCESS, res.@return);
}
Run Code Online (Sandbox Code Playgroud)
MyClassA
// Execute the createLine function which return a new object
StdResult resActionAssociateLine = Toolbox.createLine(selectedUserExtension, selectedUserSite, valueCreateLineCSS, valueCreateLineFirstNameLastName);
System.Diagnostics.Debug.WriteLine("Result is always null: " + resActionAssociateLine.text);
Run Code Online (Sandbox Code Playgroud)
namespace CUCMAdminPortal.CiscoAXL
{
[Serializable]
public class StdResult
{
public StdResVal res;
public string text;
public StdResult(StdResVal res, string text)
{
res …Run Code Online (Sandbox Code Playgroud)