protected HtmlEditorImportFormat GetHtmlEditorImportFormat(DocumentFormat documentFormat)
 {
     if (documentFormat.Equals(DocumentFormat.OpenXml))
     {
         return(HtmlEditorImportFormat.Docx);
     }
     else if (documentFormat.Equals(DocumentFormat.Doc))
     {
         return(HtmlEditorImportFormat.Doc);
     }
     else if (documentFormat.Equals(DocumentFormat.Rtf))
     {
         return(HtmlEditorImportFormat.Rtf);
     }
     else if (documentFormat.Equals(DocumentFormat.OpenDocument))
     {
         return(HtmlEditorImportFormat.Odt);
     }
     else if (documentFormat.Equals(DocumentFormat.Mht))
     {
         return(HtmlEditorImportFormat.Mht);
     }
     else
     {
         return(HtmlEditorImportFormat.Txt);
     }
 }
        /// <summary>
        /// Returns true if DocumentLoadResponse instances are equal
        /// </summary>
        /// <param name="input">Instance of DocumentLoadResponse to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(DocumentLoadResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     Error == input.Error ||
                     (Error != null &&
                      Error.Equals(input.Error))
                     ) &&
                 (
                     RemainingTokens == input.RemainingTokens ||
                     RemainingTokens.Equals(input.RemainingTokens)
                 ) &&
                 (
                     FileId == input.FileId ||
                     (FileId != null &&
                      FileId.Equals(input.FileId))
                 ) &&
                 (
                     DocumentFormat == input.DocumentFormat ||
                     DocumentFormat.Equals(input.DocumentFormat)
                 ) &&
                 (
                     PageCount == input.PageCount ||
                     PageCount.Equals(input.PageCount)
                 ) &&
                 (
                     ThumbnailData == input.ThumbnailData ||
                     (ThumbnailData != null &&
                      ThumbnailData.Equals(input.ThumbnailData))
                 ));
        }