/// <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 the Authentification /// </summary> /// <param name="className">ClassName</param> /// <param name="data">Data</param> /// <param name="binaryData">Binary Data</param> /// <returns>A new instance of Authentification</returns> public static Authentification createInstance(String className, Data data, BinaryData binaryData) { Authentification instance = new Authentification(); instance.className = className; instance.data = data; instance.binaryData = binaryData; return instance; }