marinofaggiana 6 жил өмнө
parent
commit
caffec137c

+ 22 - 0
iOSClient/Imagemeter/IMImagemeter.swift

@@ -32,6 +32,10 @@ class IMImagemeterCodable: NSObject {
             let y: Double
         }
         
+        struct color: Codable {
+            let rgba: [Double]
+        }
+        
         struct end_pt: Codable {
             let end_pt: coordinates
             
@@ -40,6 +44,22 @@ class IMImagemeterCodable: NSObject {
             }
         }
         
+        struct style: Codable {
+            let color: color
+            let line_width: Double
+            let text_outline_width: Double
+            let font_base_size: Double
+            let font_magnification: Double
+            
+            enum CodingKeys : String, CodingKey {
+                case color
+                case line_width = "line-width"
+                case text_outline_width = "text-outline-width"
+                case font_base_size = "font-base-size"
+                case font_magnification = "font-magnification"
+            }
+        }
+        
         struct audio_recording: Codable {
             let recording_filename: String
             let recording_duration_msecs: Double
@@ -102,6 +122,7 @@ class IMImagemeterCodable: NSObject {
             let show_border: Bool
             let show_arrows: Bool
             let fill_background: Bool
+            let style: style
             
             enum CodingKeys : String, CodingKey {
                 case id
@@ -114,6 +135,7 @@ class IMImagemeterCodable: NSObject {
                 case show_border = "show-border"
                 case show_arrows = "show-arrows"
                 case fill_background = "fill-background"
+                case style
             }
         }