gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-taler-ios] 37/54: Decodable


From: gnunet
Subject: [taler-taler-ios] 37/54: Decodable
Date: Fri, 30 Jun 2023 22:34:09 +0200

This is an automated email from the git hooks/post-receive script.

marc-stibane pushed a commit to branch master
in repository taler-ios.

commit 6154b92492673d400315f78b8ecd4cef92c0f7cd
Author: Marc Stibane <marc@taler.net>
AuthorDate: Wed Jun 28 17:57:44 2023 +0200

    Decodable
---
 TalerWallet1/Model/Model+Exchange.swift     |  3 +--
 TalerWallet1/Model/Model+Settings.swift     |  4 ++--
 TalerWallet1/Model/Model+Transactions.swift | 10 +++++-----
 TalerWallet1/Model/Model+Withdraw.swift     |  2 +-
 4 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/TalerWallet1/Model/Model+Exchange.swift 
b/TalerWallet1/Model/Model+Exchange.swift
index 8a3e38f..8446893 100644
--- a/TalerWallet1/Model/Model+Exchange.swift
+++ b/TalerWallet1/Model/Model+Exchange.swift
@@ -66,6 +66,7 @@ fileprivate struct ListExchanges: 
WalletBackendFormattedRequest {
 
 /// A request to add an exchange.
 fileprivate struct AddExchange: WalletBackendFormattedRequest {
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "addExchange" }
     func args() -> Args { return Args(exchangeBaseUrl: exchangeBaseUrl) }
 
@@ -74,8 +75,6 @@ fileprivate struct AddExchange: WalletBackendFormattedRequest 
{
     struct Args: Encodable {
         var exchangeBaseUrl: String
     }
-
-    struct Response: Decodable {}
 }
 // MARK: -
 extension WalletModel {
diff --git a/TalerWallet1/Model/Model+Settings.swift 
b/TalerWallet1/Model/Model+Settings.swift
index a085cb5..6d13b15 100644
--- a/TalerWallet1/Model/Model+Settings.swift
+++ b/TalerWallet1/Model/Model+Settings.swift
@@ -16,7 +16,7 @@ fileprivate let DEMO_MERCHANTAUTHTOKEN = 
"secret-token:sandbox"
 // MARK: -
 /// A request to add a test balance to the wallet.
 fileprivate struct WalletBackendWithdrawTestBalance: 
WalletBackendFormattedRequest {
-    typealias Response = String
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "withdrawTestBalance" }
     func args() -> Args {
         return Args(amount: amount, bankBaseUrl: bankBaseUrl,
@@ -49,7 +49,7 @@ extension WalletModel {
 // MARK: -
 /// A request to add a test balance to the wallet.
 fileprivate struct WalletBackendRunIntegration: WalletBackendFormattedRequest {
-    struct Response: Decodable {}
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return newVersion ? "runIntegrationTestV2" : 
"runIntegrationTest" }
     func args() -> Args {
         return Args(amountToWithdraw: amountToWithdraw,
diff --git a/TalerWallet1/Model/Model+Transactions.swift 
b/TalerWallet1/Model/Model+Transactions.swift
index 39e9842..0795255 100644
--- a/TalerWallet1/Model/Model+Transactions.swift
+++ b/TalerWallet1/Model/Model+Transactions.swift
@@ -52,7 +52,7 @@ fileprivate struct GetTransactions: 
WalletBackendFormattedRequest {
 }
 /// A request to abort a wallet transaction by ID.
 struct AbortTransaction: WalletBackendFormattedRequest {
-    struct Response: Decodable {}
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "abortTransaction" }
     func args() -> Args { return Args(transactionId: transactionId) }
 
@@ -63,7 +63,7 @@ struct AbortTransaction: WalletBackendFormattedRequest {
 }
 /// A request to delete a wallet transaction by ID.
 struct DeleteTransaction: WalletBackendFormattedRequest {
-    struct Response: Decodable {}
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "deleteTransaction" }
     func args() -> Args { return Args(transactionId: transactionId) }
 
@@ -74,7 +74,7 @@ struct DeleteTransaction: WalletBackendFormattedRequest {
 }
 /// A request to delete a wallet transaction by ID.
 struct FailTransaction: WalletBackendFormattedRequest {
-    struct Response: Decodable {}
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "failTransaction" }
     func args() -> Args { return Args(transactionId: transactionId) }
 
@@ -85,7 +85,7 @@ struct FailTransaction: WalletBackendFormattedRequest {
 }
 /// A request to suspend a wallet transaction by ID.
 struct SuspendTransaction: WalletBackendFormattedRequest {
-    struct Response: Decodable {}
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "suspendTransaction" }
     func args() -> Args { return Args(transactionId: transactionId) }
 
@@ -96,7 +96,7 @@ struct SuspendTransaction: WalletBackendFormattedRequest {
 }
 /// A request to suspend a wallet transaction by ID.
 struct ResumeTransaction: WalletBackendFormattedRequest {
-    struct Response: Decodable {}
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "resumeTransaction" }
     func args() -> Args { return Args(transactionId: transactionId) }
 
diff --git a/TalerWallet1/Model/Model+Withdraw.swift 
b/TalerWallet1/Model/Model+Withdraw.swift
index 9483251..05a2ed8 100644
--- a/TalerWallet1/Model/Model+Withdraw.swift
+++ b/TalerWallet1/Model/Model+Withdraw.swift
@@ -84,7 +84,7 @@ fileprivate struct GetExchangeTermsOfService: 
WalletBackendFormattedRequest {
 }
 /// A request to mark an exchange's terms of service as accepted.
 fileprivate struct SetExchangeTOSAccepted: WalletBackendFormattedRequest {
-    struct Response: Decodable {}
+    struct Response: Decodable {}   // no result - getting no error back means 
success
     func operation() -> String { return "setExchangeTosAccepted" }
     func args() -> Args { return Args(exchangeBaseUrl: exchangeBaseUrl, etag: 
etag) }
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]