コード例 #1
0
        /// <summary>
        /// Convert the instance of SendStringResponse to SyncResponse.
        /// </summary>
        /// <param name="syncResponseString">The SendStringResponse instance to convert.</param>
        /// <returns>The instance of SyncResponse.</returns>
        public static SyncResponse ConvertSyncResponseFromSendString(ActiveSyncResponseBase <object> syncResponseString)
        {
            SyncResponse syncResponse = new SyncResponse
            {
                ResponseDataXML = syncResponseString.ResponseDataXML,
                Headers         = syncResponseString.Headers
            };

            syncResponse.DeserializeResponseData();

            return(syncResponse);
        }
コード例 #2
0
        /// <summary>
        /// Convert the instance of SendStringResponse to SyncResponse.
        /// </summary>
        /// <param name="syncResponseString">The SendStringResponse instance to convert.</param>
        /// <returns>The instance of SyncResponse.</returns>
        public static SyncResponse ConvertSyncResponseFromSendString(ActiveSyncResponseBase<object> syncResponseString)
        {
            SyncResponse syncResponse = new SyncResponse
            {
                ResponseDataXML = syncResponseString.ResponseDataXML,
                Headers = syncResponseString.Headers
            };

            syncResponse.DeserializeResponseData();

            return syncResponse;
        }