diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/slskd/Events/Types/Events.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/slskd/Events/Types/Events.cs b/src/slskd/Events/Types/Events.cs index e54c2abe..bcfdb8d3 100644 --- a/src/slskd/Events/Types/Events.cs +++ b/src/slskd/Events/Types/Events.cs @@ -15,7 +15,7 @@ // along with this program. If not, see https://www.gnu.org/licenses/. // </copyright> -namespace slskd; +namespace slskd.Events; using System; using slskd.Transfers; @@ -23,14 +23,13 @@ using slskd.Transfers; public record Event { public Guid Id { get; } = Guid.NewGuid(); - public DateTime Timestamp { get; } = DateTime.UtcNow; + public DateTime Timestamp { get; init; } = DateTime.UtcNow; } public sealed record DownloadFileCompleteEvent : Event { public string LocalFilename { get; init; } public string RemoteFilename { get; init; } - public string Username { get; init; } public Transfer Transfer { get; init; } } |
