[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libeufin] 01/02: use generics for JSON type
From: |
gnunet |
Subject: |
[libeufin] 01/02: use generics for JSON type |
Date: |
Thu, 14 May 2020 17:49:54 +0200 |
This is an automated email from the git hooks/post-receive script.
ms pushed a commit to branch master
in repository libeufin.
commit 24d03f3e49848a2109d02ad9b6d19ad72a633dad
Author: MS <address@hidden>
AuthorDate: Wed May 13 17:49:10 2020 +0200
use generics for JSON type
---
.idea/libeufin.iml | 2 ++
nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt | 8 ++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/.idea/libeufin.iml b/.idea/libeufin.iml
new file mode 100644
index 0000000..78b2cc5
--- /dev/null
+++ b/.idea/libeufin.iml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="JAVA_MODULE" version="4" />
\ No newline at end of file
diff --git a/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
b/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
index 0b80677..2a8f72d 100644
--- a/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
+++ b/nexus/src/main/kotlin/tech/libeufin/nexus/JSON.kt
@@ -69,7 +69,7 @@ data class EbicsSubscriber(
val hostID: String,
val partnerID: String,
val userID: String,
- val systemID: String? = null
+ val systemID: String?
)
data class RawPayments(
@@ -79,10 +79,10 @@ data class RawPayments(
/*************************************************
* API types (used as requests/responses types) *
*************************************************/
-data class BankTransport(
+data class BankTransport<T, S>(
val transport: tech.libeufin.nexus.Transport,
- val backup: Any?,
- val data: Any?
+ val backup: T?,
+ val data: S?
)
/**
--
To stop receiving notification emails like this one, please contact
address@hidden.