Пример #1
0
 /// <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;
 }
Пример #2
0
 /// <summary>
 /// Creates an instance
 /// </summary>
 /// <param name="type">Returntype</param>
 /// <param name="arg">Arguments</param>
 /// <param name="metaData">MetaDatas</param>
 /// <param name="className">ClassName</param>
 /// <returns>New instance of MethodResult</returns>
 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;
 }