File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
commonMain/kotlin/com/algolia/search/model/rule
commonTest/kotlin/serialize/rule Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ import kotlinx.serialization.Serializable
1212@Serializable
1313public sealed class Promotion {
1414
15+ /* *
16+ * Promoted rank.
17+ */
1518 abstract val position: Int
1619
1720 @Serializable
@@ -20,10 +23,6 @@ public sealed class Promotion {
2023 * Unique identifier of the object to promote.
2124 */
2225 @SerialName(KeyObjectID ) val objectID : ObjectID ,
23-
24- /* *
25- * Promoted rank for the object.
26- */
2726 @SerialName(KeyPosition ) override val position : Int
2827 ) : Promotion()
2928
@@ -33,9 +32,6 @@ public sealed class Promotion {
3332 * List of unique identifiers of the objects to promote.
3433 */
3534 @SerialName(KeyObjectIDs ) val objectIDs : List <ObjectID >,
36- /* *
37- * Promoted rank for the objects.
38- */
3935 @SerialName(KeyPosition ) override val position : Int
4036 ) : Promotion()
4137}
Original file line number Diff line number Diff line change @@ -96,5 +96,8 @@ internal class TestConsequence : TestSerializer<Consequence>(Consequence.seriali
9696 edits = listOf (Edit (" mobile" ), Edit (" phone" ))
9797 )
9898 )
99+
100+ promotions[0 ].position
101+ promotions[0 ].objectID
99102 }
100103}
You can’t perform that action at this time.
0 commit comments