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 = [];
|
Byte[] content = [];
|
||||||
switch (dataType.ToLowerInvariant()) {
|
switch (dataType.ToLowerInvariant()) {
|
||||||
|
case "d":
|
||||||
case "description":
|
case "description":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Description);
|
content = Encoding.UTF8.GetBytes(photo.Description);
|
||||||
break;
|
break;
|
||||||
|
case "f":
|
||||||
case "format":
|
case "format":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Format switch {
|
content = Encoding.UTF8.GetBytes(photo.Format switch {
|
||||||
PhotoFormat.GTA5 => "gta5",
|
PhotoFormat.GTA5 => "gta5",
|
||||||
|
|
@ -28,16 +30,20 @@ internal static class Program {
|
||||||
_ => "unknown"
|
_ => "unknown"
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
case "i":
|
||||||
case "image":
|
case "image":
|
||||||
case "jpeg":
|
case "jpeg":
|
||||||
content = photo.Jpeg;
|
content = photo.Jpeg;
|
||||||
break;
|
break;
|
||||||
|
case "j":
|
||||||
case "json":
|
case "json":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Json);
|
content = Encoding.UTF8.GetBytes(photo.Json);
|
||||||
break;
|
break;
|
||||||
|
case "s":
|
||||||
case "sign":
|
case "sign":
|
||||||
content = Encoding.UTF8.GetBytes($"{photo.Sign}");
|
content = Encoding.UTF8.GetBytes($"{photo.Sign}");
|
||||||
break;
|
break;
|
||||||
|
case "t":
|
||||||
case "title":
|
case "title":
|
||||||
content = Encoding.UTF8.GetBytes(photo.Title);
|
content = Encoding.UTF8.GetBytes(photo.Title);
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue