-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from theImmortalCoders/issue-8
Issue 8
- Loading branch information
Showing
41 changed files
with
1,131 additions
and
211 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
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
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
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
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
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 |
---|---|---|
@@ -1,11 +1,10 @@ | ||
using rag_2_backend.Models; | ||
|
||
namespace rag_2_backend.DTO | ||
namespace rag_2_backend.DTO; | ||
|
||
public class GameResponse | ||
{ | ||
public class GameResponse | ||
{ | ||
public int Id { get; init; } | ||
public required string Name { get; init; } | ||
public GameType GameType { get; init; } | ||
} | ||
public int Id { get; init; } | ||
public required string Name { get; init; } | ||
public GameType GameType { get; init; } | ||
} |
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
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
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
namespace rag_2_backend.DTO.Mapper; | ||
using rag_2_backend.DTO; | ||
using rag_2_backend.Models.Entity; | ||
|
||
public class UserMapper | ||
namespace rag_2_backend.DTO.Mapper; | ||
|
||
public abstract class UserMapper | ||
{ | ||
public static UserResponse Map(User user) | ||
{ | ||
return new UserResponse | ||
{ | ||
Id = user.Id, | ||
Email = user.Email, | ||
Role = user.Role | ||
Role = user.Role, | ||
StudyCycleYearA = user.StudyCycleYearA, | ||
StudyCycleYearB = user.StudyCycleYearB | ||
}; | ||
} | ||
} | ||
} |
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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
namespace rag_2_backend.DTO; | ||
|
||
public class RecordedGameResponse | ||
{ | ||
public int Id { get; set; } | ||
public required UserResponse UserResponse { get; set; } | ||
public required GameResponse GameResponse { get; set; } | ||
public required string Value { get; set; } | ||
} | ||
} |
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,7 @@ | ||
namespace rag_2_backend.DTO; | ||
|
||
public class UserLoginRequest | ||
{ | ||
public required string Email { get; set; } | ||
public required string Password { get; set; } | ||
} |
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
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
Oops, something went wrong.