コード例 #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 a new instance of MethodResultMessage
 /// </summary>
 /// <param name="message">Message</param>
 /// <returns>Returns a new instance of MethodResultMessage</returns>
 public static MethodResultMessage CreateInstance(MessageResult message)
 {
     MethodResultMessage instance=new MethodResultMessage();
     instance.message = message;
     return instance;
 }