/// <summary> /// Sends an Attachment Request ACK. /// </summary> /// <param name="status">The status code</param> /// <param name="ackData">The ack data for the request</param> /// <param name="exception">The global exception</param> /// <param name="messageID">The messageID to be used. If not present, random one will be generated.</param> /// <param name="header">The header to be used in the message. If not present, default one will be generated.</param> public void SendAttachmentRequestACK5(StatusCode status, AttachmentRequestAckTypeData ackData, string exception = null, string messageID = null, MessageHeader header = null) { MessageData data = MessageManager.GetAttachmentRequestAckData(status, ackData, exception); MessageHeader messageHeader = header ?? MessageManager.GetHeader(userName, messageID, DataType.AttachmentRequestAck); SendMessage(messageHeader, data); }
/// <summary> /// Create an AttachmentRequestAck type data part. /// </summary> /// <param name="status">The status incorporates a global signal regarding the response.</param> /// <param name="ackData">The response object belonging to the acknowledgement.</param> /// <param name="exception">The description of an error.</param> /// <returns>The created AttachmentRequestAckData object.</returns> public static AttachmentRequestAckData GetAttachmentRequestAckData(StatusCode status, AttachmentRequestAckTypeData ackData, string exception) { return(new AttachmentRequestAckData(status, ackData, exception)); }
/// <summary> /// Create an AttachmentRequestAck type data part. /// </summary> /// <param name="status">The status incorporates a global signal regarding the response.</param> /// <param name="ackData">The response object belonging to the acknowledgement.</param> /// <returns>The created AttachmentRequestAckData object.</returns> public static AttachmentRequestAckData GetAttachmentRequestAckData(StatusCode status, AttachmentRequestAckTypeData ackData) { return(new AttachmentRequestAckData(status, ackData, null)); }