Skip to content

Commit a096c5b

Browse files
committed
feat(rule): update kdoc
1 parent ebd73e0 commit a096c5b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/commonMain/kotlin/com/algolia/search/model/rule/Promotion.kt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import kotlinx.serialization.Serializable
1212
@Serializable
1313
public 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
}

src/commonTest/kotlin/serialize/rule/TestConsequence.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)