add d f i j s t options to get

This commit is contained in:
Syping 2025-10-25 02:25:22 +02:00
parent 21b62d1b79
commit 09bf4b4034

View file

@ -18,9 +18,11 @@ internal static class Program {
Byte[] content = [];
switch (dataType.ToLowerInvariant()) {
case "d":
case "description":
content = Encoding.UTF8.GetBytes(photo.Description);
break;
case "f":
case "format":
content = Encoding.UTF8.GetBytes(photo.Format switch {
PhotoFormat.GTA5 => "gta5",
@ -28,16 +30,20 @@ internal static class Program {
_ => "unknown"
});
break;
case "i":
case "image":
case "jpeg":
content = photo.Jpeg;
break;
case "j":
case "json":
content = Encoding.UTF8.GetBytes(photo.Json);
break;
case "s":
case "sign":
content = Encoding.UTF8.GetBytes($"{photo.Sign}");
break;
case "t":
case "title":
content = Encoding.UTF8.GetBytes(photo.Title);
break;