Artifact Content
Not logged in

Artifact 98d1a83c77758803330067468167009cb3982e1d:


package org.interledger.ilp.client.model;

import org.interledger.ilp.InterledgerAddress;
import org.interledger.ilp.ledger.model.LedgerMessage;

import java.util.UUID;

/**
 * Concrete implementation of a message exchanged with a ledger.
 */
public class ClientLedgerMessage implements LedgerMessage {

  private UUID id;
  private String type;
  private InterledgerAddress from;
  private InterledgerAddress to;
  private Object data;

  @Override
  public UUID getId() {
    return id;
  }

  @Override
  public String getType() {
    return type;
  }

  @Override
  public InterledgerAddress getFrom() {
    return this.from;
  }

  @Override
  public InterledgerAddress getTo() {
    return this.to;
  }

  @Override
  public Object getData() {
    return this.data;
  }

  public void setId(UUID id) {
    this.id = id;
  }

  public void setType(String type) {
    this.type = type;
  }

  public void setFrom(InterledgerAddress from) {
    this.from = from;
  }

  public void setTo(InterledgerAddress to) {
    this.to = to;
  }

  public void setData(Object data) {
    this.data = data;
  }


}