Class representing a diff request sent to DiffResource. Encapsulates request data.
name | data type | description |
---|---|---|
content1 | string | Return the content1. |
content2 | string | Return the content2. |
ignoreRegex | string | Return the ignore regex that will be used to sanitize the content before the diff is invoked. |
changeTemplate | string | Return the change template.
{@code The following default template will be used when no template has been set: |
insertTemplate | string | Return the insert template.
{@code The following default template will be used when no template has been set: $insert } |
removeTemplate | string | Return the remove template.
The following default template will be used when no template has been set: {@code |
wordsBefore | number | Return the number of words before the change to be shown. Default value: #DEFAULT_WORDS_BEFORE |
wordsAfter | number | Return the amount of words that should be displayed after the actual diff. Default value: #DEFAULT_WORDS_AFTER |
Example
{ "content1" : "...", "content2" : "...", "ignoreRegex" : "...", "changeTemplate" : "...", "insertTemplate" : "...", "removeTemplate" : "...", "wordsBefore" : 12345, "wordsAfter" : 12345 }