Artifact Content
Not logged in

Artifact e50605c2e6c283d0f20dac86084410a3cb1b380e:


package org.interledger.ilp.ledger.adaptor.ws.jsonrpc;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.net.URI;
import java.util.List;

/**
 * Defines the parameters used in a JSON-RPC call to subscribe to account notifications.
 */
public class JsonRpcSubscribeAccountRequestParams implements JsonRpcRequestParams {

  private List<URI> accounts;
  private String eventType;

  @JsonProperty(value = "eventType")
  public String getEventType() {
    return eventType;
  }

  @JsonProperty(value = "accounts")
  public List<URI> getAccounts() {
    return this.accounts;
  }

  public void setEventType(String eventType) {
    this.eventType = eventType;
  }

  public void setAccounts(List<URI> accParam) {
    this.accounts = accParam;
  }

}