-
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.
- Loading branch information
1 parent
fd6b23c
commit fc7a4d3
Showing
9 changed files
with
479 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace api.core.Data.Enums; | ||
|
||
/// <summary> | ||
/// 1 - InappropriateContent | ||
/// 2 - FalseInformation | ||
/// 3 - AbusiveBehavior | ||
/// 4 - ObsoleteInformation | ||
/// </summary> | ||
[JsonConverter(typeof(JsonStringEnumConverter))] | ||
[Flags] | ||
public enum ReportCategory | ||
{ | ||
InappropriateContent = 1, | ||
FalseInformation = 2, | ||
AbusiveBehavior = 3, | ||
ObsoleteInformation = 4 | ||
} |
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,10 @@ | ||
namespace api.core.Data.Requests; | ||
using api.core.Data.Enums; | ||
|
||
namespace api.core.Data.Requests; | ||
|
||
public class CreateReportRequestDTO | ||
{ | ||
public string Reason { get; set; } | ||
|
||
public DateTime Date { get; set; } | ||
public ReportCategory Category { 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
Oops, something went wrong.