-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split ApplicationEvent to separate file. Changed Events to readonlylist
- Loading branch information
1 parent
3b284d6
commit c7f651d
Showing
2 changed files
with
41 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
|
||
namespace Passwordless.Models; | ||
|
||
/// <summary> | ||
/// An event that occured using Passwordless library. | ||
/// </summary> | ||
public class ApplicationEvent | ||
{ | ||
public Guid Id { get; set; } | ||
/// <summary> | ||
/// When the record was performed. This will be in UTC. | ||
/// </summary> | ||
public DateTime PerformedAt { get; set; } | ||
|
||
/// <summary> | ||
/// The type of event <see href="https://github.com/passwordless/passwordless-server/blob/main/src/Common/EventLog/Enums/EventType.cs" /> | ||
/// </summary> | ||
public string EventType { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Description of the event | ||
/// </summary> | ||
public string Message { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Severity of the event <see href="https://github.com/passwordless/passwordless-server/blob/main/src/Common/EventLog/Enums/Severity.cs"/> | ||
/// </summary> | ||
public string Severity { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// The target of the event. Can be in reference to a user or the application. | ||
/// </summary> | ||
public string Subject { get; set; } = string.Empty; | ||
|
||
/// <summary> | ||
/// Last 4 characters of the api key (public/secret) used to perform the event. | ||
/// </summary> | ||
public string ApiKeyId { get; set; } = string.Empty; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters