Search Results for

    Show / Hide Table of Contents

    Class DocumentHistoryDifference

    Inheritance
    object
    DocumentHistoryDifference
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: System.Dynamic.ExpandoObject
    Syntax
    [GeneratedCode("NJsonSchema", "13.20.0.0 (NJsonSchema v10.9.0.0 (Newtonsoft.Json v13.0.0.0))")]
    public class DocumentHistoryDifference

    Properties

    DocumentId

    Declaration
    [JsonProperty("documentId", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public string DocumentId { get; set; }
    Property Value
    string

    NewDocumentVersion

    Declaration
    [JsonProperty("newDocumentVersion", Required = Required.Always)]
    public long NewDocumentVersion { get; set; }
    Property Value
    long

    OldDocumentVersion

    Declaration
    [JsonProperty("oldDocumentVersion", Required = Required.Always)]
    public long OldDocumentVersion { get; set; }
    Property Value
    long

    Patch

    Contains an RFC 6902 compatible patch that can be applied on the old document to get the new document.
    Use a library like jsondiffpatch.net (https://github.com/wbish/jsondiffpatch.net)
    or jsondiffpatch (https://github.com/benjamine/jsondiffpatch) to process this.

    Declaration
    [JsonProperty("patch", Required = Required.Default, NullValueHandling = NullValueHandling.Ignore)]
    public object Patch { get; set; }
    Property Value
    object

    Methods

    FromJson(string)

    Declaration
    public static DocumentHistoryDifference FromJson(string data)
    Parameters
    string data

    Returns
    DocumentHistoryDifference

    ToJson()

    Declaration
    public string ToJson()
    Returns
    string

    Back to top Generated by DocFX