From 573cb1085bc70560ce7070d270d08164be4a041b Mon Sep 17 00:00:00 2001 From: Zimu Zheng Date: Tue, 7 May 2024 12:12:53 +0200 Subject: [PATCH 1/2] ECWID-116277 Implement alt-text support for all image API | Update AsyncPictureData dto --- .../com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt index 38a1b252b..9be99e6c3 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt @@ -3,5 +3,11 @@ package com.ecwid.apiclient.v3.dto.common data class AsyncPictureData( val url: String = "", val width: Int = 0, - val height: Int = 0 + val height: Int = 0, + val alt: PictureAlt? = null +) + +data class PictureAlt ( + var main: String? = null, + var translated: Map? = null ) From 364951aaefac8cb80ee3136fafea437bb1a9ece8 Mon Sep 17 00:00:00 2001 From: Zimu Zheng Date: Tue, 7 May 2024 12:24:36 +0200 Subject: [PATCH 2/2] ECWID-116277 Implement alt-text support for all image API | Code clean --- .../com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt b/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt index 9be99e6c3..f218b4ffe 100644 --- a/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt +++ b/src/main/kotlin/com/ecwid/apiclient/v3/dto/common/AsyncPictureData.kt @@ -7,7 +7,7 @@ data class AsyncPictureData( val alt: PictureAlt? = null ) -data class PictureAlt ( - var main: String? = null, - var translated: Map? = null +data class PictureAlt( + val main: String? = null, + val translated: Map? = null )