mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
19 lines
549 B
C#
19 lines
549 B
C#
namespace NadekoBot.Modules.Nsfw.Common
|
|
{
|
|
public class Rule34Object : IImageData
|
|
{
|
|
public string Image { get; init; }
|
|
public int Directory { get; init; }
|
|
public string Tags { get; init; }
|
|
public int Score { get; init; }
|
|
|
|
public ImageData ToCachedImageData(Booru type)
|
|
{
|
|
return new ImageData(
|
|
$"https://img.rule34.xxx//images/{Directory}/{Image}",
|
|
Booru.Rule34,
|
|
Tags.Split(' '),
|
|
Score.ToString());
|
|
}
|
|
}
|
|
} |