summaryrefslogtreecommitdiffstats
path: root/solve/PhotoEditor/Models
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2024-04-19 00:55:07 +0200
committerLouis Burda <quent.burda@gmail.com>2024-04-19 00:55:07 +0200
commitebb26ae709570a84004c27f34e9307c33ac6b000 (patch)
treeba83f56ec65986cab387c97b771cd0a26e566c60 /solve/PhotoEditor/Models
parent84e77e74c8d69b33a25938a46700b67a3e835c88 (diff)
downloadcscg24-photoeditor-ebb26ae709570a84004c27f34e9307c33ac6b000.tar.gz
cscg24-photoeditor-ebb26ae709570a84004c27f34e9307c33ac6b000.zip
Add SolutionHEADmaster
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