31 lines
694 B
C#
31 lines
694 B
C#
|
using System;
|
|||
|
namespace ln.type.rpc
|
|||
|
{
|
|||
|
public class RPCResult
|
|||
|
{
|
|||
|
public object Identifier { get; set; }
|
|||
|
|
|||
|
public object Result { get; set; }
|
|||
|
|
|||
|
public String ErrorText { get; set; }
|
|||
|
public Exception Exception { get; set; }
|
|||
|
|
|||
|
public RPCResult(RPCCall call)
|
|||
|
{
|
|||
|
Identifier = call.Identifier;
|
|||
|
}
|
|||
|
public RPCResult(RPCCall call,object result)
|
|||
|
{
|
|||
|
Identifier = call.Identifier;
|
|||
|
Result = result;
|
|||
|
}
|
|||
|
public RPCResult(RPCCall call,Exception e)
|
|||
|
{
|
|||
|
Identifier = call.Identifier;
|
|||
|
Exception = e;
|
|||
|
ErrorText = e.ToString();
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
}
|