mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Added a generic interface for retrieving images. Where multiple images exist, it'll retrieve the least seen. If there are sufficient images to work with, it'll randomly pick from a subset of the least seen to make it less predictable what's going to show up.
This commit is contained in:
9
KfChatDotNetBot/Models/DbModels/ImageDbModel.cs
Normal file
9
KfChatDotNetBot/Models/DbModels/ImageDbModel.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
namespace KfChatDotNetBot.Models.DbModels;
|
||||
|
||||
public class ImageDbModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public required string Key { get; set; }
|
||||
public required string Url { get; set; }
|
||||
public required DateTimeOffset LastSeen { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user