Changeset 057037b for backend/DTOs
- Timestamp:
- 04/11/22 15:29:19 (3 years ago)
- Branches:
- master
- Children:
- 7a983b0
- Parents:
- b66b3ac
- Location:
- backend/DTOs
- Files:
-
- 4 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
backend/DTOs/AuthenticateRequest.cs
rb66b3ac r057037b 6 6 { 7 7 [Required] 8 public string Username{ get; set; }8 public string Email { get; set; } 9 9 10 10 [Required] -
backend/DTOs/AuthenticateResponse.cs
rb66b3ac r057037b 1 1 using backend.Entities; 2 using Newtonsoft.Json; 2 3 3 4 namespace backend.Models; … … 6 7 public class AuthenticateResponse 7 8 { 9 [JsonProperty] 8 10 public int Id { get; set; } 9 public string Username { get; set; } 11 [JsonProperty] 12 public string Email { get; set; } 13 [JsonProperty] 10 14 public string Token { get; set; } 11 12 13 public AuthenticateResponse(User user, string token)14 {15 Id = user.Id;16 Username = user.Username;17 Token = token;18 }19 15 }
Note:
See TracChangeset
for help on using the changeset viewer.