public VersionResult(VersionId versionId, string revision, Metadata metadata, Content content) : base(versionId, revision, metadata, content) { }
/// <summary> /// Initializes a new instance of the <see cref="Version"/> class. /// </summary> /// <param name="versionId">The <see cref="VersionId"/>.</param> /// <param name="revision">The revision.</param> /// <param name="metadata">The <see cref="Metadata"/>.</param> /// <param name="content">The content.</param> /// <remarks> /// Enables actions: all /// </remarks> public Version(VersionId versionId, string revision, Metadata metadata, Content content) { VersionId = versionId; Revision = revision; Metadata = metadata; if (Metadata == null) Metadata = new Data.Metadata(); Content = content; }
/// <summary> /// Initializes a new instance of the <see cref="Version"/> class. /// </summary> /// <param name="versionId">The <see cref="VersionId"/>.</param> /// <param name="metadata">The <see cref="Metadata"/>.</param> /// <param name="content">The <see cref="Content"/>.</param> /// <remarks>Enables actions: <see cref="ActionsType.HeadCurrentRevision"/>, /// <see cref="ActionsType.GetCurrentRevision"/>, /// <see cref="ActionsType.CreateWithoutPropertiesOrContent"/>, /// <see cref="ActionsType.CreateWithPropertiesWithoutContent"/>, /// <see cref="ActionsType.CreateWithoutPropertiesWithContent"/>, /// <see cref="ActionsType.CreateWithPropertiesAndContent"/>. /// </remarks> public Version(VersionId versionId, Metadata metadata, Content content) : this(versionId, null, metadata, content) { }
/// <summary> /// Initializes a new instance of the <see cref="Version"/> class. /// </summary> /// <param name="versionId">The <see cref="VersionId"/>.</param> /// <param name="revision">The revision.</param> /// <param name="metadata">The <see cref="Content"/>.</param> /// <remarks>Enables actions: <see cref="ActionsType.Delete"/>, /// <see cref="ActionsType.HeadCurrentRevision"/>, /// <see cref="ActionsType.HeadSpecificRevision"/>, /// <see cref="ActionsType.GetCurrentRevision"/>, /// <see cref="ActionsType.GetSpecificRevision"/>, /// <see cref="ActionsType.CreateWithoutPropertiesOrContent"/>, /// <see cref="ActionsType.CreateWithoutPropertiesWithContent"/>, /// <see cref="ActionsType.UpdateWithoutPropertiesOrContent"/>, /// <see cref="ActionsType.UpdateWithoutPropertiesWithContent"/>. /// </remarks> public Version(VersionId versionId, string revision, Content content) : this(versionId, revision, null, content) { }
/// <summary> /// Initializes a new instance of the <see cref="Version"/> class. /// </summary> /// <param name="versionId">The <see cref="VersionId"/>.</param> /// <param name="content">The <see cref="Content"/>.</param> /// <remarks>Enables actions: <see cref="ActionsType.HeadCurrentRevision"/>, /// <see cref="ActionsType.GetCurrentRevision"/>, /// <see cref="ActionsType.CreateWithoutPropertiesOrContent"/>, /// <see cref="ActionsType.CreateWithoutPropertiesWithContent"/>. /// </remarks> public Version(VersionId versionId, Content content) : this(versionId, null, null, content) { }