/// <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); }
/// <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; }