/// <summary> /// Creates a new instance of MessageResult /// </summary> /// <param name="result">Result</param> /// <param name="callId">CallId</param> /// <returns>returns a new instance of MessageResult</returns> public static MessageResult CreateInstance(MethodResult result, string callId) { MessageResult msg = new MessageResult(); msg.result = result; msg.callId = callId; return msg; }
public static MethodResult CreateInstance(ReturnType type, object arg, IDictionary<string, string> metaData, string className) { MethodResult result = new MethodResult(); result.type = type; result.arg = arg; result.metaData = metaData; result.className = className; return result; }