Fix serializer

This commit is contained in:
k.struzhkin 2020-03-19 11:34:10 +03:00
parent 4f44744986
commit 06b8b85e56
4 changed files with 30 additions and 1 deletions

View File

@ -24,7 +24,7 @@
<damsel.version>1.278-3abdcb4</damsel.version>
<sonar.jacoco.reportPath>${project.basedir}/../target/jacoco.exec</sonar.jacoco.reportPath>
<woody.thrift.version>1.1.15</woody.thrift.version>
<damsel.version>1.291-02be09e</damsel.version>
<damsel.version>1.391-8fe5f98</damsel.version>
<machinegun-proto.version>1.12-ebae56f</machinegun-proto.version>
</properties>

View File

@ -0,0 +1,11 @@
package com.rbkmoney.sink.common.parser.impl;
import com.rbkmoney.damsel.payment_processing.PartyEventData;
import com.rbkmoney.sink.common.serialization.BinaryDeserializer;
public class PartyEventDataMachineEventParser extends MachineEventParser<PartyEventData> {
public PartyEventDataMachineEventParser(BinaryDeserializer<PartyEventData> deserializer) {
super(deserializer);
}
}

View File

@ -0,0 +1,11 @@
package com.rbkmoney.sink.common.serialization.impl;
import com.rbkmoney.damsel.payment_processing.PartyEventData;
public class PartyEventDataDeserializer extends AbstractThriftBinaryDeserializer<PartyEventData> {
@Override
public PartyEventData deserialize(byte[] bin) {
return deserialize(bin, new PartyEventData());
}
}

View File

@ -0,0 +1,7 @@
package com.rbkmoney.sink.common.serialization.impl;
import com.rbkmoney.damsel.payment_processing.PartyEventData;
public class PartyEventDataSerializer extends ThriftBinarySerializer<PartyEventData> {
}