Exemplo n.º 1
0
        /// <summary>
        /// Sends an Attachment Response 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 SendAttachmentResponseAck7(StatusCode status, AttachmentResponseAckTypeData ackData, string exception = null, string messageID = null, MessageHeader header = null)
        {
            MessageData   data          = MessageManager.GetAttachmentResponseAckData(status, ackData, exception);
            MessageHeader messageHeader = header ?? MessageManager.GetHeader(userName, messageID, DataType.AttachmentResponseAck);

            SendMessage(messageHeader, data);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Create an AttachmentResponseAck 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 AttachmentResponseAckData object.</returns>
 public static AttachmentResponseAckData GetAttachmentResponseAckData(StatusCode status, AttachmentResponseAckTypeData ackData, string exception)
 {
     return(new AttachmentResponseAckData(status, ackData, exception));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create an AttachmentResponseAck 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 AttachmentResponseAckData object.</returns>
 public static AttachmentResponseAckData GetAttachmentResponseAckData(StatusCode status, AttachmentResponseAckTypeData ackData)
 {
     return(new AttachmentResponseAckData(status, ackData, null));
 }