/// <summary> /// Creates a new instance of MessageCallRequest /// </summary> /// <param name="authentification">Authentication Datas</param> /// <param name="message">Message</param> /// <returns>Returns a new instance of MethodCallRequest</returns> public static MethodCallRequest CreateInstance(Authentification authenticationData, Message message) { MethodCallRequest request = new MethodCallRequest(); request.authenticationData = authenticationData; request.message = message; request.timestamp = DateTime.Now.Ticks; return request; }
/// <summary> /// Creates a new instance of Message /// </summary> /// <param name="methodCall">MethodCall</param> /// <param name="callId">CallId</param> /// <param name="answer">Answer</param> /// <param name="destination">Destination</param> /// <returns>returns a new Message of CreateInstance</returns> public static Message createInstance(MethodCall methodCall, string callId, bool answer, string destination) { Message instance = new Message(); instance.methodCall = methodCall; instance.callId = callId; instance.answer = answer; instance.destination = destination; return instance; }