From 877dec2a6446b8ef21a50fb6cd3f5762cf7e345a Mon Sep 17 00:00:00 2001
From: Dariusz Rybicki <dariusz@elixxir.io>
Date: Mon, 25 Jul 2022 19:08:33 +0100
Subject: [PATCH] Organize models

---
 Sources/ElixxirDAppsSDK/AuthCallbacks.swift                | 6 ------
 Sources/ElixxirDAppsSDK/Models/AuthCallback.swift          | 7 +++++++
 Sources/ElixxirDAppsSDK/{ => Models}/ClientError.swift     | 0
 Sources/ElixxirDAppsSDK/{ => Models}/Fact.swift            | 0
 Sources/ElixxirDAppsSDK/{ => Models}/Message.swift         | 0
 .../ElixxirDAppsSDK/{ => Models}/MessageSendReport.swift   | 0
 .../ElixxirDAppsSDK/{ => Models}/ReceptionIdentity.swift   | 0
 Sources/ElixxirDAppsSDK/{ => Models}/RestlikeMessage.swift | 0
 8 files changed, 7 insertions(+), 6 deletions(-)
 create mode 100644 Sources/ElixxirDAppsSDK/Models/AuthCallback.swift
 rename Sources/ElixxirDAppsSDK/{ => Models}/ClientError.swift (100%)
 rename Sources/ElixxirDAppsSDK/{ => Models}/Fact.swift (100%)
 rename Sources/ElixxirDAppsSDK/{ => Models}/Message.swift (100%)
 rename Sources/ElixxirDAppsSDK/{ => Models}/MessageSendReport.swift (100%)
 rename Sources/ElixxirDAppsSDK/{ => Models}/ReceptionIdentity.swift (100%)
 rename Sources/ElixxirDAppsSDK/{ => Models}/RestlikeMessage.swift (100%)

diff --git a/Sources/ElixxirDAppsSDK/AuthCallbacks.swift b/Sources/ElixxirDAppsSDK/AuthCallbacks.swift
index 51b1748b..8306b1f0 100644
--- a/Sources/ElixxirDAppsSDK/AuthCallbacks.swift
+++ b/Sources/ElixxirDAppsSDK/AuthCallbacks.swift
@@ -1,12 +1,6 @@
 import Bindings
 import XCTestDynamicOverlay
 
-public enum AuthCallback {
-  case confirm(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
-  case request(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
-  case reset(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
-}
-
 public struct AuthCallbacks {
   public init(handle: @escaping (AuthCallback) -> Void) {
     self.handle = handle
diff --git a/Sources/ElixxirDAppsSDK/Models/AuthCallback.swift b/Sources/ElixxirDAppsSDK/Models/AuthCallback.swift
new file mode 100644
index 00000000..4765f06b
--- /dev/null
+++ b/Sources/ElixxirDAppsSDK/Models/AuthCallback.swift
@@ -0,0 +1,7 @@
+import Foundation
+
+public enum AuthCallback {
+  case confirm(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
+  case request(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
+  case reset(contact: Data, receptionId: Data, ephemeralId: Int64, roundId: Int64)
+}
diff --git a/Sources/ElixxirDAppsSDK/ClientError.swift b/Sources/ElixxirDAppsSDK/Models/ClientError.swift
similarity index 100%
rename from Sources/ElixxirDAppsSDK/ClientError.swift
rename to Sources/ElixxirDAppsSDK/Models/ClientError.swift
diff --git a/Sources/ElixxirDAppsSDK/Fact.swift b/Sources/ElixxirDAppsSDK/Models/Fact.swift
similarity index 100%
rename from Sources/ElixxirDAppsSDK/Fact.swift
rename to Sources/ElixxirDAppsSDK/Models/Fact.swift
diff --git a/Sources/ElixxirDAppsSDK/Message.swift b/Sources/ElixxirDAppsSDK/Models/Message.swift
similarity index 100%
rename from Sources/ElixxirDAppsSDK/Message.swift
rename to Sources/ElixxirDAppsSDK/Models/Message.swift
diff --git a/Sources/ElixxirDAppsSDK/MessageSendReport.swift b/Sources/ElixxirDAppsSDK/Models/MessageSendReport.swift
similarity index 100%
rename from Sources/ElixxirDAppsSDK/MessageSendReport.swift
rename to Sources/ElixxirDAppsSDK/Models/MessageSendReport.swift
diff --git a/Sources/ElixxirDAppsSDK/ReceptionIdentity.swift b/Sources/ElixxirDAppsSDK/Models/ReceptionIdentity.swift
similarity index 100%
rename from Sources/ElixxirDAppsSDK/ReceptionIdentity.swift
rename to Sources/ElixxirDAppsSDK/Models/ReceptionIdentity.swift
diff --git a/Sources/ElixxirDAppsSDK/RestlikeMessage.swift b/Sources/ElixxirDAppsSDK/Models/RestlikeMessage.swift
similarity index 100%
rename from Sources/ElixxirDAppsSDK/RestlikeMessage.swift
rename to Sources/ElixxirDAppsSDK/Models/RestlikeMessage.swift
-- 
GitLab