File tree Expand file tree Collapse file tree 1 file changed +15
-7
lines changed
client/src/main/java/io/split/client/dtos Expand file tree Collapse file tree 1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,20 @@ public class SplitChangesOldPayloadDto {
14
14
@ SerializedName ("splits" )
15
15
public List <Split > d ;
16
16
17
- public ChangeDto <Split > toChangeDTO () {
18
- ChangeDto <Split > dto = new ChangeDto <>();
19
- dto .s = this .s ;
20
- dto .t = this .t ;
21
- dto .d = this .d ;
22
- return dto ;
23
-
17
+ public SplitChange toSplitChange () {
18
+ SplitChange splitChange = new SplitChange ();
19
+ ChangeDto <Split > ff = new ChangeDto <>();
20
+ ff .s = this .s ;
21
+ ff .t = this .t ;
22
+ ff .d = this .d ;
23
+ ChangeDto <RuleBasedSegment > rbs = new ChangeDto <>();
24
+ rbs .d = new ArrayList <>();
25
+ rbs .t = -1 ;
26
+ rbs .s = -1 ;
27
+
28
+ splitChange .ff = ff ;
29
+ splitChange .rbs = rbs ;
30
+
31
+ return splitChange ;
24
32
}
25
33
}
You can’t perform that action at this time.
0 commit comments