Skip to content

Commit

Permalink
Add filepath to response message
Browse files Browse the repository at this point in the history
  • Loading branch information
BOLL7708 committed Jul 24, 2024
1 parent 9b79546 commit 93d7302
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
6 changes: 4 additions & 2 deletions SuperScreenShotterVR/MainController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,8 @@ private void ScreenShotTaken(VREvent_Data_t eventData)
msg.Nonce,
imgb64data,
image.Width,
image.Height
image.Height,
filePath
),
JsonOptions.Get())
);
Expand All @@ -595,7 +596,8 @@ private void ScreenShotTaken(VREvent_Data_t eventData)
"",
imgb64data,
image.Width,
image.Height
image.Height,
filePath
),
JsonOptions.Get())
);
Expand Down
2 changes: 1 addition & 1 deletion SuperScreenShotterVR/Properties/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,6 @@
<value>..\resources\logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Version" xml:space="preserve">
<value>v2.1.0</value>
<value>v2.1.1</value>
</data>
</root>
14 changes: 5 additions & 9 deletions SuperScreenShotterVR/Remote/ScreenshotResponse.cs
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SuperScreenShotterVR.Remote
namespace SuperScreenShotterVR.Remote
{
class ScreenshotResponse
{
public string Nonce = "";
public string Image = "";
public int Width = 0;
public int Height = 0;
public string FilePath = "";
public string Message = "";
public string Error = "";

public static ScreenshotResponse Create(string nonce, string image, int width, int height)
public static ScreenshotResponse Create(string nonce, string image, int width, int height, string filePath)
{
return new ScreenshotResponse()
{
Nonce = nonce,
Image = image,
Width = width,
Height = height
Height = height,
FilePath = filePath
};
}

Expand Down

0 comments on commit 93d7302

Please sign in to comment.