mirror of
https://github.com/Syping/ragephoto-cli.git
synced 2025-11-09 13:15:17 +01:00
add d f i j s t options to get
This commit is contained in:
parent
21b62d1b79
commit
09bf4b4034
1 changed files with 6 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue