mirror of
https://github.com/bitwarden/server
synced 2025-12-16 08:13:33 +00:00
* support nullability in tools' entities and repositories * enables C# nullability checks in these files * includes documentation for affected files * refine documentation per code review * improve comments on SendFileData structure * fix ReferenceEvent.MaxAccessCount documentation * add value notation to SendFileData.FileName
34 lines
816 B
C#
34 lines
816 B
C#
#nullable enable
|
|
|
|
namespace Bit.Core.Tools.Models.Data;
|
|
|
|
/// <summary>
|
|
/// Shared data for a send
|
|
/// </summary>
|
|
public abstract class SendData
|
|
{
|
|
/// <summary>
|
|
/// Instantiates a <see cref="SendData"/>.
|
|
/// </summary>
|
|
public SendData() { }
|
|
|
|
/// <inheritdoc cref="SendData()" />
|
|
/// <param name="name">User-provided name of the send.</param>
|
|
/// <param name="notes">User-provided private notes of the send.</param>
|
|
public SendData(string name, string? notes)
|
|
{
|
|
Name = name;
|
|
Notes = notes;
|
|
}
|
|
|
|
/// <summary>
|
|
/// User-provided name of the send.
|
|
/// </summary>
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// User-provided private notes of the send.
|
|
/// </summary>
|
|
public string? Notes { get; set; } = null;
|
|
}
|