-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
4 changed files
with
29 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
16 changes: 16 additions & 0 deletions
16
backend/ZiziBot.DataSource/MongoDb/Entities/WebhookHistoryEntity.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,16 @@ | ||
using ZiziBot.Types.Types; | ||
|
||
namespace ZiziBot.DataSource.MongoDb.Entities; | ||
|
||
[Table("WebhookHistory")] | ||
public class WebhookHistoryEntity : EntityBase | ||
{ | ||
public string RouteId { get; set; } | ||
public long ChatId { get; set; } | ||
public int MessageId { get; set; } | ||
public int MessageThreadId { get; set; } | ||
public WebhookSource WebhookSource { get; set; } | ||
public TimeSpan Elapsed { get; set; } | ||
public WebhookHeader? Header { get; set; } | ||
public string? Payload { 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
12 changes: 7 additions & 5 deletions
12
backend/ZiziBot.DataSource/MongoEf/Entities/WebhookHistoryEntity.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,15 +1,17 @@ | ||
using MongoDB.EntityFrameworkCore; | ||
using ZiziBot.Types.Types; | ||
|
||
namespace ZiziBot.DataSource.MongoEf.Entities; | ||
|
||
[Collection("WebhookHistory")] | ||
public class WebhookHistoryEntity : EntityBase | ||
{ | ||
public required string RouteId { get; set; } | ||
public required long ChatId { get; set; } | ||
public required int MessageId { get; set; } | ||
public string RouteId { get; set; } | ||
public long ChatId { get; set; } | ||
public int MessageId { get; set; } | ||
public int MessageThreadId { get; set; } | ||
public required WebhookSource WebhookSource { get; set; } | ||
public WebhookSource WebhookSource { get; set; } | ||
public TimeSpan Elapsed { get; set; } | ||
public required string Payload { get; set; } | ||
public WebhookHeader? Header { get; set; } | ||
public string? Payload { get; set; } | ||
} |