Artifact Content
Not logged in

Artifact 8198d96ea2505ed90f0988153d80f50543fa3028:


package org.interledger.codecs;

import org.interledger.codecs.packettypes.InterledgerPacketType;
import org.interledger.codecs.packettypes.PaymentPacketType;
import org.interledger.ilp.InterledgerPayment;

/**
 * An implementation of {@link Codec} that reads and writes instances of {@link InterledgerPayment}.
 */
public interface InterledgerPaymentCodec extends InterledgerPacketCodec<InterledgerPayment> {

  InterledgerPacketType TYPE = new PaymentPacketType();

  @Override
  default InterledgerPacketType getTypeId() {
    return TYPE;
  }
}