internal static IndexDocumentData CreateIndexDocumentData(Node node, byte[] bytes, long? indexDocumentInfoSize)
{
return new IndexDocumentData
{
NodeTypeId = node.NodeTypeId,
VersionId = node.VersionId,
NodeId = node.Id,
ParentId = node.ParentId,
Path = node.Path,
IsLastDraft = node.IsLatestVersion,
IsLastPublic = node.IsLastPublicVersion,
IndexDocumentInfoBytes = bytes,
IndexDocumentInfoSize = indexDocumentInfoSize,
NodeTimestamp = node.NodeTimestamp,
VersionTimestamp = node.VersionTimestamp
};
}