mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Send type in news DTO.
This commit is contained in:
@@ -32,13 +32,14 @@ public sealed class NewsDto : BaseDto<int>
|
||||
{
|
||||
public NewsDto() {}
|
||||
|
||||
public NewsDto(int affectedId, string text, DateTime timestamp, string controller, string itemName)
|
||||
public NewsDto(int affectedId, string text, DateTime timestamp, string controller, string itemName, NewsType type)
|
||||
{
|
||||
AffectedId = affectedId;
|
||||
Text = text;
|
||||
Timestamp = timestamp;
|
||||
Controller = controller;
|
||||
ItemName = itemName;
|
||||
Type = type;
|
||||
}
|
||||
|
||||
[JsonPropertyName("type")]
|
||||
@@ -46,11 +47,11 @@ public sealed class NewsDto : BaseDto<int>
|
||||
[JsonPropertyName("affected_id")]
|
||||
public int AffectedId { get; set; }
|
||||
[JsonPropertyName("controller")]
|
||||
public string Controller { get; }
|
||||
public string Controller { get; set; }
|
||||
[JsonPropertyName("item_name")]
|
||||
public string ItemName { get; }
|
||||
public string ItemName { get; set; }
|
||||
[JsonPropertyName("text")]
|
||||
public string Text { get; }
|
||||
public string Text { get; set; }
|
||||
[JsonPropertyName("timestamp")]
|
||||
public DateTime Timestamp { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user