diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-11-17 07:52:37 +0100 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-11-17 07:52:37 +0100 |
| commit | cba9c246b20c9b2d33546a48ac5878dc46e87f55 (patch) | |
| tree | e79b5e98cc0cf370c6ebf1a898be7af464a5df7a /code/api/src/Data/Database | |
| parent | 9ddd3471b4222f0d2deceb25b46f609407397a20 (diff) | |
| download | greatoffice-cba9c246b20c9b2d33546a48ac5878dc46e87f55.tar.xz greatoffice-cba9c246b20c9b2d33546a48ac5878dc46e87f55.zip | |
refactor: Use explicit req/res classes instead of common dto
Diffstat (limited to 'code/api/src/Data/Database')
| -rw-r--r-- | code/api/src/Data/Database/Api/ApiAccessToken.cs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/code/api/src/Data/Database/Api/ApiAccessToken.cs b/code/api/src/Data/Database/Api/ApiAccessToken.cs index 9582869..9359fc4 100644 --- a/code/api/src/Data/Database/Api/ApiAccessToken.cs +++ b/code/api/src/Data/Database/Api/ApiAccessToken.cs @@ -9,23 +9,4 @@ public class ApiAccessToken : Base public bool AllowUpdate { get; set; } public bool AllowDelete { get; set; } public bool HasExpired => ExpiryDate < AppDateTime.UtcNow; - public ApiAccessTokenDto AsDto => new(this); - - public class ApiAccessTokenDto - { - public ApiAccessTokenDto(ApiAccessToken source) { - ExpiryDate = source.ExpiryDate; - AllowRead = source.AllowRead; - AllowCreate = source.AllowCreate; - AllowUpdate = source.AllowUpdate; - AllowDelete = source.AllowDelete; - } - - public DateTime ExpiryDate { get; set; } - public bool AllowRead { get; set; } - public bool AllowCreate { get; set; } - public bool AllowUpdate { get; set; } - public bool AllowDelete { get; set; } - public bool HasExpired => ExpiryDate < AppDateTime.UtcNow; - } }
\ No newline at end of file |
