summaryrefslogtreecommitdiffstats
path: root/solve/PhotoEditor/Models
diff options
context:
space:
mode:
Diffstat (limited to 'solve/PhotoEditor/Models')
-rw-r--r--solve/PhotoEditor/Models/ErrorViewModel.cs8
-rw-r--r--solve/PhotoEditor/Models/PhotoTransferRequestModel.cs10
-rw-r--r--solve/PhotoEditor/Models/PhotoTransferResponseModel.cs9
-rw-r--r--solve/PhotoEditor/Models/RectangleStruct.cs9
4 files changed, 36 insertions, 0 deletions
diff --git a/solve/PhotoEditor/Models/ErrorViewModel.cs b/solve/PhotoEditor/Models/ErrorViewModel.cs
new file mode 100644
index 0000000..b4fec48
--- /dev/null
+++ b/solve/PhotoEditor/Models/ErrorViewModel.cs
@@ -0,0 +1,8 @@
+namespace PhotoEditor.Models;
+
+public class ErrorViewModel
+{
+ public string? RequestId { get; set; }
+
+ public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
+}
diff --git a/solve/PhotoEditor/Models/PhotoTransferRequestModel.cs b/solve/PhotoEditor/Models/PhotoTransferRequestModel.cs
new file mode 100644
index 0000000..3de410f
--- /dev/null
+++ b/solve/PhotoEditor/Models/PhotoTransferRequestModel.cs
@@ -0,0 +1,10 @@
+namespace PhotoEditor.Models;
+
+public class PhotoTransferRequestModel
+{
+ public string Base64Blob { get; set; }
+
+ public string DynamicAction { get; set; }
+ public string Parameters { get; set; }
+ public string[]? Types { get; set; }
+}
diff --git a/solve/PhotoEditor/Models/PhotoTransferResponseModel.cs b/solve/PhotoEditor/Models/PhotoTransferResponseModel.cs
new file mode 100644
index 0000000..274a9f4
--- /dev/null
+++ b/solve/PhotoEditor/Models/PhotoTransferResponseModel.cs
@@ -0,0 +1,9 @@
+namespace PhotoEditor.Models;
+
+public class PhotoTransferResponseModel
+{
+ public string? Base64Blob { get; set; }
+
+ public string? Error { get; set; }
+
+}
diff --git a/solve/PhotoEditor/Models/RectangleStruct.cs b/solve/PhotoEditor/Models/RectangleStruct.cs
new file mode 100644
index 0000000..9b41bab
--- /dev/null
+++ b/solve/PhotoEditor/Models/RectangleStruct.cs
@@ -0,0 +1,9 @@
+
+namespace PhotoEditor.Models;
+public class RectangleStruct {
+ public int X {get; set;}
+ public int Y {get; set;}
+ public int W {get; set;}
+ public int H {get; set;}
+
+} \ No newline at end of file