/*
 * Copyright (c) TESOBE Ltd.  2016. All rights reserved.
 *
 * Use of this source code is governed by a GNU AFFERO license that can be found in the LICENSE file.
 *
 */
package com.tesobe.obp.transport;

import java.math.BigDecimal;
import java.time.ZonedDateTime;

/**
 * Implemented by {@link Decoder} to read data from the transport.
 */
public interface Data
{
  /**
   * Read a string valued field from the transport
   *
   * @param key field name
   *
   * @return field value
   */
  String text(String key);

  /**
   * Read a money valued field from the transport
   *
   * @param key field name
   *
   * @return field value
   */
  BigDecimal money(String key);

  /**
   * Read a timestamp valued field from the transport.
   * The time zone is Zulu, always.
   *
   * @param key field name
   *
   * @return field value
   */
  ZonedDateTime timestamp(String key);
}

@@ -33,9 +33,9 @@
  201
-6
+7
 . Al
@@ -200,16 +200,45 @@
 sport;%0A%0A
+import java.io.Serializable;%0A
 import j
@@ -366,16 +366,16 @@
 rt.%0A */%0A
-
 public i
@@ -387,16 +387,37 @@
 ace Data
+ extends Serializable
 %0A%7B%0A  /**

Data is Serializable