示例#1
0
        /// <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);
        }
示例#2
0
 /// <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));
 }
示例#3
0
 /// <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));
 }