forked from verdie-g/crpg
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
109 changed files
with
2,484 additions
and
1,261 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
src/Application/ActivityLogs/Models/ActivityLogMetadataEnrichedViewModel.cs
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,12 @@ | ||
using Crpg.Application.Characters.Models; | ||
using Crpg.Application.Clans.Models; | ||
using Crpg.Application.Users.Models; | ||
|
||
namespace Crpg.Application.ActivityLogs.Models; | ||
|
||
public record ActivityLogMetadataEnrichedViewModel | ||
{ | ||
public IList<ClanPublicViewModel> Clans { get; init; } = Array.Empty<ClanPublicViewModel>(); | ||
public IList<UserPublicViewModel> Users { get; init; } = Array.Empty<UserPublicViewModel>(); | ||
public IList<CharacterPublicViewModel> Characters { get; init; } = Array.Empty<CharacterPublicViewModel>(); | ||
} |
7 changes: 7 additions & 0 deletions
7
src/Application/ActivityLogs/Models/ActivityLogWithDictViewModel.cs
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 @@ | ||
using Crpg.Application.ActivityLogs.Models; | ||
|
||
public record ActivityLogWithDictViewModel | ||
{ | ||
public IList<ActivityLogViewModel> ActivityLogs { get; init; } = Array.Empty<ActivityLogViewModel>(); | ||
public ActivityLogMetadataEnrichedViewModel Dict { get; init; } = new(); | ||
} |
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
14 changes: 14 additions & 0 deletions
14
src/Application/Characters/Models/CharacterPublicCompetitiveViewModel.cs
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,14 @@ | ||
using Crpg.Application.Common.Mappings; | ||
using Crpg.Application.Users.Models; | ||
using Crpg.Domain.Entities.Characters; | ||
|
||
namespace Crpg.Application.Characters.Models; | ||
|
||
public record CharacterPublicCompetitiveViewModel : IMapFrom<Character> | ||
{ | ||
public int Id { get; init; } | ||
public int Level { get; init; } | ||
public CharacterClass Class { get; init; } | ||
public CharacterRatingViewModel Rating { get; init; } = new(); | ||
public UserPublicViewModel User { get; init; } = new(); | ||
} |
11 changes: 5 additions & 6 deletions
11
src/Application/Characters/Models/CharacterPublicViewModel.cs
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,14 +1,13 @@ | ||
using Crpg.Application.Common.Mappings; | ||
using Crpg.Application.Users.Models; | ||
using Crpg.Domain.Entities.Characters; | ||
|
||
namespace Crpg.Application.Characters.Models; | ||
|
||
public record CharacterPublicViewModel : IMapFrom<Character> | ||
{ | ||
public int Id { get; init; } | ||
public int Level { get; init; } | ||
public CharacterClass Class { get; init; } | ||
public IList<CharacterStatisticsViewModel> Statistics { get; init; } = Array.Empty<CharacterStatisticsViewModel>(); | ||
public UserPublicViewModel User { get; init; } = new(); | ||
public int Id { get; init; } | ||
public int Level { get; init; } | ||
public string Name { get; init; } = string.Empty; | ||
public CharacterClass Class { get; init; } | ||
public IList<CharacterStatisticsViewModel> Statistics { get; init; } = Array.Empty<CharacterStatisticsViewModel>(); | ||
} |
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
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.