internal PutRelativeFileSuggestedRequest(HttpRequestMessage httpRequestMessage, string fileId) : base(httpRequestMessage, fileId) { Content = httpRequestMessage.Content; SuggestedTarget = WopiRequest.GetHttpRequestHeader(httpRequestMessage, WopiRequestHeaders.SUGGESTED_TARGET); var isFileConversionStr = WopiRequest.GetHttpRequestHeader(httpRequestMessage, WopiRequestHeaders.FILE_CONVERSION); if (isFileConversionStr != null) { IsFileConversion = bool.Parse(isFileConversionStr); } }
internal PutRelativeFileSpecificRequest(HttpRequestMessage httpRequestMessage, string fileId) : base(httpRequestMessage, fileId) { Content = httpRequestMessage.Content; RelativeTarget = WopiRequest.GetHttpRequestHeader(httpRequestMessage, WopiRequestHeaders.RELATIVE_TARGET); var overwriteRelativeTargetStr = WopiRequest.GetHttpRequestHeader(httpRequestMessage, WopiRequestHeaders.OVERWRITE_RELATIVE_TARGET); if (RelativeTarget != null && overwriteRelativeTargetStr != null) { OverwriteRelativeTarget = bool.Parse(overwriteRelativeTargetStr); } var isFileConversionStr = WopiRequest.GetHttpRequestHeader(httpRequestMessage, WopiRequestHeaders.FILE_CONVERSION); if (isFileConversionStr != null) { IsFileConversion = bool.Parse(isFileConversionStr); } }