From 514c55446aee4b5c5ce3b4545e9ecfe75f82266c Mon Sep 17 00:00:00 2001 From: gme_2 Date: Mon, 18 Mar 2019 13:59:46 +0900 Subject: [PATCH] resend module added --- .DS_Store | Bin 10244 -> 10244 bytes GME Remit.xcodeproj/project.pbxproj | 128 ++++++++++++++++++ GMERemittance/AppDelegate.swift | 31 ++--- .../Interactor/ResendInteractor.swift | 31 +++++ .../Interactor/ResendInteractorIO.swift | 15 ++ .../Service/ResendService.swift | 18 +++ .../Service/ResendServiceType.swift | 13 ++ .../ResendModuleInterface.swift | 11 ++ .../Presenter/ResendPresenter.swift | 32 +++++ .../User Interface/View/Resend.storyboard | 32 +++++ .../View/ResendTableViewCell.swift | 22 +++ .../View/ResendViewController.swift | 70 ++++++++++ .../View/ResendViewInterface.swift | 10 ++ .../Wireframe/ResendWireframe.swift | 34 +++++ .../Wireframe/ResendWireframeInput.swift | 13 ++ 15 files changed, 438 insertions(+), 22 deletions(-) create mode 100644 GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractor.swift create mode 100644 GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractorIO.swift create mode 100644 GMERemittance/Module/Resend/Application Logic/Service/ResendService.swift create mode 100644 GMERemittance/Module/Resend/Application Logic/Service/ResendServiceType.swift create mode 100644 GMERemittance/Module/Resend/Module Interface/ResendModuleInterface.swift create mode 100644 GMERemittance/Module/Resend/User Interface/Presenter/ResendPresenter.swift create mode 100644 GMERemittance/Module/Resend/User Interface/View/Resend.storyboard create mode 100644 GMERemittance/Module/Resend/User Interface/View/ResendTableViewCell.swift create mode 100644 GMERemittance/Module/Resend/User Interface/View/ResendViewController.swift create mode 100644 GMERemittance/Module/Resend/User Interface/View/ResendViewInterface.swift create mode 100644 GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframe.swift create mode 100644 GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframeInput.swift diff --git a/.DS_Store b/.DS_Store index 61b8df9304c8ec67c4f7b141584ba87e22ea6aa0..30e6121417d76bb41c4a21ef70e74e0a53144b58 100644 GIT binary patch delta 54 zcmV-60LlM^P=rvhS`h+T6q8&LHv$z9liv|9ll>JAlhP4M0|KM$li(39lS~o~0|MXx MlbsbFvw9MW74r8IAOHXW delta 54 zcmV-60LlM^P=rvhS`h*-R+C&2Hv$ykliv|9ll>JAlhP4M0|b;tli(39lS~o~0|dYT MlbsbFvw9MW6$I)MH2?qr diff --git a/GME Remit.xcodeproj/project.pbxproj b/GME Remit.xcodeproj/project.pbxproj index c0e1e596..7a4b8676 100644 --- a/GME Remit.xcodeproj/project.pbxproj +++ b/GME Remit.xcodeproj/project.pbxproj @@ -2039,8 +2039,20 @@ D97785A7215DC55F00754079 /* TransactionHistoryViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = D977859C215DC55E00754079 /* TransactionHistoryViewInterface.swift */; }; D97785AA215DD04400754079 /* TransactionHistoryTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D97785A9215DD04400754079 /* TransactionHistoryTableViewCell.swift */; }; D97785AC215DD23400754079 /* TransactionModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = D97785AB215DD23400754079 /* TransactionModel.swift */; }; + D979061D223F58420025BD5B /* ResendModuleInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = D979060A223F58410025BD5B /* ResendModuleInterface.swift */; }; + D979061E223F58420025BD5B /* ResendServiceType.swift in Sources */ = {isa = PBXBuildFile; fileRef = D979060D223F58410025BD5B /* ResendServiceType.swift */; }; + D979061F223F58420025BD5B /* ResendService.swift in Sources */ = {isa = PBXBuildFile; fileRef = D979060E223F58410025BD5B /* ResendService.swift */; }; + D9790620223F58420025BD5B /* ResendInteractor.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9790610223F58410025BD5B /* ResendInteractor.swift */; }; + D9790621223F58420025BD5B /* ResendInteractorIO.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9790611223F58410025BD5B /* ResendInteractorIO.swift */; }; + D9790622223F58420025BD5B /* ResendPresenter.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9790614223F58410025BD5B /* ResendPresenter.swift */; }; + D9790623223F58420025BD5B /* ResendWireframeInput.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9790616223F58410025BD5B /* ResendWireframeInput.swift */; }; + D9790624223F58420025BD5B /* ResendWireframe.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9790617223F58410025BD5B /* ResendWireframe.swift */; }; + D9790625223F58420025BD5B /* ResendViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D979061A223F58410025BD5B /* ResendViewController.swift */; }; + D9790626223F58420025BD5B /* ResendViewInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = D979061B223F58410025BD5B /* ResendViewInterface.swift */; }; + D9790627223F58420025BD5B /* Resend.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D979061C223F58410025BD5B /* Resend.storyboard */; }; D99B6A4D22040E440096C1D6 /* LocalAuthentication.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D99B6A4C22040E440096C1D6 /* LocalAuthentication.framework */; }; D99D72AA212D595B00601F48 /* CountryInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = D99D72A9212D595B00601F48 /* CountryInfo.swift */; }; + D9A060BF223F5C9600F5D7C4 /* ResendTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9A060BE223F5C9600F5D7C4 /* ResendTableViewCell.swift */; }; D9AFE856215C7166005F3A25 /* HomeCollectionTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9AFE855215C7166005F3A25 /* HomeCollectionTableViewCell.swift */; }; D9B39677214F7DDC0072A9B8 /* ImageCroper.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9B39675214F7DDC0072A9B8 /* ImageCroper.swift */; }; D9B39678214F7DDC0072A9B8 /* MultiMediaManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = D9B39676214F7DDC0072A9B8 /* MultiMediaManager.swift */; }; @@ -4193,12 +4205,24 @@ D977859C215DC55E00754079 /* TransactionHistoryViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionHistoryViewInterface.swift; sourceTree = ""; }; D97785A9215DD04400754079 /* TransactionHistoryTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionHistoryTableViewCell.swift; sourceTree = ""; }; D97785AB215DD23400754079 /* TransactionModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionModel.swift; sourceTree = ""; }; + D979060A223F58410025BD5B /* ResendModuleInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendModuleInterface.swift; sourceTree = ""; }; + D979060D223F58410025BD5B /* ResendServiceType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendServiceType.swift; sourceTree = ""; }; + D979060E223F58410025BD5B /* ResendService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendService.swift; sourceTree = ""; }; + D9790610223F58410025BD5B /* ResendInteractor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendInteractor.swift; sourceTree = ""; }; + D9790611223F58410025BD5B /* ResendInteractorIO.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendInteractorIO.swift; sourceTree = ""; }; + D9790614223F58410025BD5B /* ResendPresenter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendPresenter.swift; sourceTree = ""; }; + D9790616223F58410025BD5B /* ResendWireframeInput.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendWireframeInput.swift; sourceTree = ""; }; + D9790617223F58410025BD5B /* ResendWireframe.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendWireframe.swift; sourceTree = ""; }; + D979061A223F58410025BD5B /* ResendViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendViewController.swift; sourceTree = ""; }; + D979061B223F58410025BD5B /* ResendViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendViewInterface.swift; sourceTree = ""; }; + D979061C223F58410025BD5B /* Resend.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Resend.storyboard; sourceTree = ""; }; D9835812221F826E00748962 /* ne */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ne; path = ne.lproj/Localizable.strings; sourceTree = ""; }; D9835814221F918100748962 /* bn */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = bn; path = bn.lproj/Localizable.strings; sourceTree = ""; }; D9835815221FD7B900748962 /* vi-VN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "vi-VN"; path = "vi-VN.lproj/Localizable.strings"; sourceTree = ""; }; D9899D02222DFF9D00E983CA /* uz */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uz; path = uz.lproj/Localizable.strings; sourceTree = ""; }; D99B6A4C22040E440096C1D6 /* LocalAuthentication.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = LocalAuthentication.framework; path = System/Library/Frameworks/LocalAuthentication.framework; sourceTree = SDKROOT; }; D99D72A9212D595B00601F48 /* CountryInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CountryInfo.swift; sourceTree = ""; }; + D9A060BE223F5C9600F5D7C4 /* ResendTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResendTableViewCell.swift; sourceTree = ""; }; D9A458FD2223E5AD003123D4 /* ru-RU */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ru-RU"; path = "ru-RU.lproj/Localizable.strings"; sourceTree = ""; }; D9AFE855215C7166005F3A25 /* HomeCollectionTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeCollectionTableViewCell.swift; sourceTree = ""; }; D9B39675214F7DDC0072A9B8 /* ImageCroper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageCroper.swift; sourceTree = ""; }; @@ -5193,6 +5217,7 @@ D907AB96212AA8A300915A87 /* Module */ = { isa = PBXGroup; children = ( + D9790608223F58410025BD5B /* Resend */, D92E65522226209F004D1B3D /* SendMoneyCode */, D9BE021321E2DD44003AA8C7 /* PaymentSelection */, 04702FF121CA3EAE00B6C9C3 /* AutoDebit */, @@ -9769,6 +9794,97 @@ path = Cell; sourceTree = ""; }; + D9790608223F58410025BD5B /* Resend */ = { + isa = PBXGroup; + children = ( + D9790609223F58410025BD5B /* Module Interface */, + D979060B223F58410025BD5B /* Application Logic */, + D9790612223F58410025BD5B /* User Interface */, + ); + path = Resend; + sourceTree = ""; + }; + D9790609223F58410025BD5B /* Module Interface */ = { + isa = PBXGroup; + children = ( + D979060A223F58410025BD5B /* ResendModuleInterface.swift */, + ); + path = "Module Interface"; + sourceTree = ""; + }; + D979060B223F58410025BD5B /* Application Logic */ = { + isa = PBXGroup; + children = ( + D979060C223F58410025BD5B /* Service */, + D979060F223F58410025BD5B /* Interactor */, + ); + path = "Application Logic"; + sourceTree = ""; + }; + D979060C223F58410025BD5B /* Service */ = { + isa = PBXGroup; + children = ( + D979060D223F58410025BD5B /* ResendServiceType.swift */, + D979060E223F58410025BD5B /* ResendService.swift */, + ); + path = Service; + sourceTree = ""; + }; + D979060F223F58410025BD5B /* Interactor */ = { + isa = PBXGroup; + children = ( + D9790610223F58410025BD5B /* ResendInteractor.swift */, + D9790611223F58410025BD5B /* ResendInteractorIO.swift */, + ); + path = Interactor; + sourceTree = ""; + }; + D9790612223F58410025BD5B /* User Interface */ = { + isa = PBXGroup; + children = ( + D9790613223F58410025BD5B /* Presenter */, + D9790615223F58410025BD5B /* Wireframe */, + D9790618223F58410025BD5B /* View */, + ); + path = "User Interface"; + sourceTree = ""; + }; + D9790613223F58410025BD5B /* Presenter */ = { + isa = PBXGroup; + children = ( + D9790614223F58410025BD5B /* ResendPresenter.swift */, + ); + path = Presenter; + sourceTree = ""; + }; + D9790615223F58410025BD5B /* Wireframe */ = { + isa = PBXGroup; + children = ( + D9790616223F58410025BD5B /* ResendWireframeInput.swift */, + D9790617223F58410025BD5B /* ResendWireframe.swift */, + ); + path = Wireframe; + sourceTree = ""; + }; + D9790618223F58410025BD5B /* View */ = { + isa = PBXGroup; + children = ( + D9790619223F58410025BD5B /* ViewModels */, + D979061A223F58410025BD5B /* ResendViewController.swift */, + D979061B223F58410025BD5B /* ResendViewInterface.swift */, + D979061C223F58410025BD5B /* Resend.storyboard */, + D9A060BE223F5C9600F5D7C4 /* ResendTableViewCell.swift */, + ); + path = View; + sourceTree = ""; + }; + D9790619223F58410025BD5B /* ViewModels */ = { + isa = PBXGroup; + children = ( + ); + path = ViewModels; + sourceTree = ""; + }; D9B7ADDB2130048E009B0564 /* ExchangeRates */ = { isa = PBXGroup; children = ( @@ -11259,6 +11375,7 @@ D93C26F322000D630079BF03 /* iPhone_transkey_landscape_number_key_6.png in Resources */, 5565FF231FE275E5002934E9 /* SanFranciscoText-BoldItalic.otf in Resources */, D93C2BBD22000D660079BF03 /* transkey_input_sym_16.png in Resources */, + D9790627223F58420025BD5B /* Resend.storyboard in Resources */, D93C298F22000D650079BF03 /* iPad_transkey_landscape_number_cmd_2_2_japanese_down.png in Resources */, D93C2AE422000D650079BF03 /* iPad_transkey_alnum_cmd_8_chinese.png in Resources */, D93C27E722000D630079BF03 /* iPad_transkey_landscape_alnum_sym_0.png in Resources */, @@ -12247,9 +12364,11 @@ 045DFCAA2089A70E000F7699 /* ReferralCodeViewController.swift in Sources */, 9F9DF0CE1FEBCD41005B8F42 /* RecipientListTableViewCell.swift in Sources */, 0496B8551FE7E2830044810E /* SignUpViewModel.swift in Sources */, + D9790622223F58420025BD5B /* ResendPresenter.swift in Sources */, D96A4FDC21460B4A00CFD507 /* SplashScreenViewInterface.swift in Sources */, D950BED721549242008367A1 /* HomeWireframeInput.swift in Sources */, D977859D215DC55F00754079 /* TransactionHistoryModuleInterface.swift in Sources */, + D979061F223F58420025BD5B /* ResendService.swift in Sources */, 049E61A71FF0FF2A00817C76 /* FillRecoveryCodeViewModel.swift in Sources */, D903113C214786EA00AD5BA9 /* ForgotPasswordModuleInterface.swift in Sources */, D946719D21426DFB003924DB /* LoginViewInterface.swift in Sources */, @@ -12277,6 +12396,7 @@ D93702B02148EE6C00D93077 /* KycServiceType.swift in Sources */, D922D9B221351B7400D43053 /* SendMoneyVerificationViewController.swift in Sources */, D96A5002214668A000CFD507 /* RegisterRequestModel.swift in Sources */, + D9A060BF223F5C9600F5D7C4 /* ResendTableViewCell.swift in Sources */, D96A4FFB2146625C00CFD507 /* RegisterPresenter.swift in Sources */, D92E656C222620A0004D1B3D /* SendMoneyCodePresenter.swift in Sources */, FF6E7D9021BF951D00A003B9 /* AppUpdateService.swift in Sources */, @@ -12334,6 +12454,7 @@ D937037421490C3800D93077 /* KycForm2InteractorIO.swift in Sources */, D9031143214786EA00AD5BA9 /* ForgotPasswordWireframeInput.swift in Sources */, D92C24A721477EA600F6876F /* ResponseMessage.swift in Sources */, + D979061D223F58420025BD5B /* ResendModuleInterface.swift in Sources */, D9BE022C21E2DD45003AA8C7 /* PaymentSelectionInteractorIO.swift in Sources */, 045CB0C6202F2A3D008DD982 /* _MessageComposeViewController.swift in Sources */, D96BD11C216479E200DFE7D8 /* WalletStatementWireframeInput.swift in Sources */, @@ -12376,6 +12497,7 @@ D922D9AD21351B7400D43053 /* SendMoneyVerificationPresenter.swift in Sources */, D92E6567222620A0004D1B3D /* SendMoneyCodeModuleInterface.swift in Sources */, D92B802D2140C3CB00A25B26 /* MainViewInterface.swift in Sources */, + D9790626223F58420025BD5B /* ResendViewInterface.swift in Sources */, A25A6C092029ADA80024CDFB /* TranscationStatementViewController.swift in Sources */, D962231E212C126500B7A115 /* ExchangeModel.swift in Sources */, D93702B12148EE6C00D93077 /* KycInteractor.swift in Sources */, @@ -12426,6 +12548,7 @@ D93702B32148EE6C00D93077 /* KycPresenter.swift in Sources */, D9CB497E21329EB700B7A124 /* CountryPickerViewController.swift in Sources */, D9622316212BE3DC00B7A115 /* TablePickerTableViewCell.swift in Sources */, + D9790624223F58420025BD5B /* ResendWireframe.swift in Sources */, 043BE859204CF3A200221D12 /* MoneyRequestTableViewCell.swift in Sources */, D950BED121549242008367A1 /* HomeModuleInterface.swift in Sources */, 04E36E1D21AE585200783685 /* PennyTestSubmitInteractor.swift in Sources */, @@ -12456,6 +12579,7 @@ D922D9A921351B7400D43053 /* SendMoneyVerificationServiceType.swift in Sources */, 0413C2F32031576E000B508E /* PopUpGeneralInfo.swift in Sources */, D922D9642135145F00D43053 /* SendMoneyParentService.swift in Sources */, + D9790621223F58420025BD5B /* ResendInteractorIO.swift in Sources */, A270F08F2075E34C00B78D00 /* PayoutMode.swift in Sources */, D96A50002146625C00CFD507 /* RegisterViewController.swift in Sources */, D945F126213E1D5100A24824 /* SendMoneyReceiptViewController.swift in Sources */, @@ -12535,6 +12659,7 @@ D945F129213E4A9D00A24824 /* SendMoneyReciept.swift in Sources */, A22162D0202C4A61000E915C /* TabBarViewController.swift in Sources */, D9B7ADF02130048E009B0564 /* ExchangeRatesModuleInterface.swift in Sources */, + D979061E223F58420025BD5B /* ResendServiceType.swift in Sources */, A252A4CC203ACFA0001EFF4C /* TransactionSuccessViewController.swift in Sources */, 043770EE21AD04240005B22D /* PennyTestWireframe.swift in Sources */, 045CB0C4202F27FA008DD982 /* SupportViewController.swift in Sources */, @@ -12584,6 +12709,7 @@ 0496B8471FE7DFA20044810E /* Box.swift in Sources */, D950BED421549242008367A1 /* HomeInteractorIO.swift in Sources */, 042E7F2A2010E908006A5176 /* Cdd.swift in Sources */, + D9790623223F58420025BD5B /* ResendWireframeInput.swift in Sources */, D922D98D21351AAE00D43053 /* SendMoneyExchangeRateViewInterface.swift in Sources */, 9F2E45A2204E8A3F00D0B28C /* CalendarViewController.swift in Sources */, D90A9D66213696E400A96E45 /* BankPickerViewController.swift in Sources */, @@ -12616,6 +12742,7 @@ D937034221490C1A00D93077 /* KycForm3Wireframe.swift in Sources */, D922D9262134DCF000D43053 /* EditReciepientViewInterface.swift in Sources */, D90D55B121326DA800EEEE04 /* Reciepient.swift in Sources */, + D9790625223F58420025BD5B /* ResendViewController.swift in Sources */, 04CD5395208F0765008F0971 /* UploadImageViewModel.swift in Sources */, D950BED821549242008367A1 /* HomeWireframe.swift in Sources */, D922D9AF21351B7400D43053 /* SendMoneyVerificationWireframeInput.swift in Sources */, @@ -12694,6 +12821,7 @@ D9CB49872132A5F500B7A124 /* ItemsPickerViewController.swift in Sources */, D922D9422135124200D43053 /* SendMoneyPaymentModeServiceType.swift in Sources */, D937038421490C3800D93077 /* KycForm1ViewInterface.swift in Sources */, + D9790620223F58420025BD5B /* ResendInteractor.swift in Sources */, D90D55CF21327CD600EEEE04 /* AddReciepientInteractorIO.swift in Sources */, D945F120213E1D5100A24824 /* SendMoneyReceiptInteractor.swift in Sources */, 041A86A721D1F5590044C83C /* WkWebViewController.swift in Sources */, diff --git a/GMERemittance/AppDelegate.swift b/GMERemittance/AppDelegate.swift index 1913a224..d6970f9d 100644 --- a/GMERemittance/AppDelegate.swift +++ b/GMERemittance/AppDelegate.swift @@ -172,28 +172,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { var userInfo = notification.request.content.userInfo - - - /** - redirection of page after foreground push notification - */ - - - if - let aps = userInfo["aps"] as? NSDictionary, - let alert = aps["alert"] as? NSDictionary, - let body = alert["body"] as? String, - let title = alert["title"] as? String { - let image = UIImage.init(named: "ic_gme") - let banner = Banner(title: title, subtitle: body, image: image, backgroundColor: UIColor(red:0.93, green:0.11, blue:0.14, alpha:1.0)) - banner.show(duration: 5.0) - } - - if userInfo["code"] != nil { -// print("codeAP delegate: \(codeID)") - } - - // Change this to your preferred presentation option + +// if let aps = userInfo["aps"] as? NSDictionary, +// let alert = aps["alert"] as? NSDictionary, +// let body = alert["body"] as? String, +// let title = alert["title"] as? String { +// let image = UIImage.init(named: "ic_gme") +// let banner = Banner(title: title, subtitle: body, image: image, backgroundColor: UIColor(red:0.93, green:0.11, blue:0.14, alpha:1.0)) +// banner.show(duration: 5.0) +// } completionHandler( [UNNotificationPresentationOptions.alert, UNNotificationPresentationOptions.sound, diff --git a/GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractor.swift b/GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractor.swift new file mode 100644 index 00000000..dbc3c05d --- /dev/null +++ b/GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractor.swift @@ -0,0 +1,31 @@ +// +// ResendInteractor.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import Foundation + +class ResendInteractor { + + // MARK: Properties + + weak var output: ResendInteractorOutput? + private let service: ResendServiceType + + // MARK: Initialization + + init(service: ResendServiceType) { + self.service = service + } + + // MARK: Converting entities +} + +// MARK: Resend interactor input interface + +extension ResendInteractor: ResendInteractorInput { + +} diff --git a/GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractorIO.swift b/GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractorIO.swift new file mode 100644 index 00000000..1235a57d --- /dev/null +++ b/GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractorIO.swift @@ -0,0 +1,15 @@ +// +// ResendInteractorIO.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +protocol ResendInteractorInput: class { + +} + +protocol ResendInteractorOutput: class { + +} diff --git a/GMERemittance/Module/Resend/Application Logic/Service/ResendService.swift b/GMERemittance/Module/Resend/Application Logic/Service/ResendService.swift new file mode 100644 index 00000000..197e7591 --- /dev/null +++ b/GMERemittance/Module/Resend/Application Logic/Service/ResendService.swift @@ -0,0 +1,18 @@ +// +// ResendService.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import Foundation + +class ResendService: ResendServiceType { + + // MARK: Properties + + // MARK: Initialization + + // MARK: Data management +} diff --git a/GMERemittance/Module/Resend/Application Logic/Service/ResendServiceType.swift b/GMERemittance/Module/Resend/Application Logic/Service/ResendServiceType.swift new file mode 100644 index 00000000..27566470 --- /dev/null +++ b/GMERemittance/Module/Resend/Application Logic/Service/ResendServiceType.swift @@ -0,0 +1,13 @@ +// +// ResendServiceType.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import Foundation + +protocol ResendServiceType: class { + +} diff --git a/GMERemittance/Module/Resend/Module Interface/ResendModuleInterface.swift b/GMERemittance/Module/Resend/Module Interface/ResendModuleInterface.swift new file mode 100644 index 00000000..6b0fdf0e --- /dev/null +++ b/GMERemittance/Module/Resend/Module Interface/ResendModuleInterface.swift @@ -0,0 +1,11 @@ +// +// ResendModuleInterface.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +protocol ResendModuleInterface: class { + +} diff --git a/GMERemittance/Module/Resend/User Interface/Presenter/ResendPresenter.swift b/GMERemittance/Module/Resend/User Interface/Presenter/ResendPresenter.swift new file mode 100644 index 00000000..914561ad --- /dev/null +++ b/GMERemittance/Module/Resend/User Interface/Presenter/ResendPresenter.swift @@ -0,0 +1,32 @@ +// +// ResendPresenter.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import Foundation + +class ResendPresenter { + + // MARK: Properties + + weak var view: ResendViewInterface? + var interactor: ResendInteractorInput? + var wireframe: ResendWireframeInput? + + // MARK: Converting entities +} + + // MARK: Resend module interface + +extension ResendPresenter: ResendModuleInterface { + +} + +// MARK: Resend interactor output interface + +extension ResendPresenter: ResendInteractorOutput { + +} diff --git a/GMERemittance/Module/Resend/User Interface/View/Resend.storyboard b/GMERemittance/Module/Resend/User Interface/View/Resend.storyboard new file mode 100644 index 00000000..9e9363e3 --- /dev/null +++ b/GMERemittance/Module/Resend/User Interface/View/Resend.storyboard @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/GMERemittance/Module/Resend/User Interface/View/ResendTableViewCell.swift b/GMERemittance/Module/Resend/User Interface/View/ResendTableViewCell.swift new file mode 100644 index 00000000..c3c334af --- /dev/null +++ b/GMERemittance/Module/Resend/User Interface/View/ResendTableViewCell.swift @@ -0,0 +1,22 @@ +// +// ResendTableViewCell.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +// Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import UIKit + +class ResendTableViewCell: UITableViewCell { + + override func awakeFromNib() { + super.awakeFromNib() + // Initialization code + } + + func setup() { + + } + +} diff --git a/GMERemittance/Module/Resend/User Interface/View/ResendViewController.swift b/GMERemittance/Module/Resend/User Interface/View/ResendViewController.swift new file mode 100644 index 00000000..ecc7136a --- /dev/null +++ b/GMERemittance/Module/Resend/User Interface/View/ResendViewController.swift @@ -0,0 +1,70 @@ +// +// ResendViewController.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import UIKit + +class ResendViewController: UIViewController { + + // MARK: IBOutlets + + var model: [String] = ["a", "b", "c"] + + // MARK: Properties + + var presenter: ResendModuleInterface? + + + // MARK: VC's Life cycle + + override func viewDidLoad() { + super.viewDidLoad() + self.setup() + } + + // MARK: IBActions + + // MARK: Other Functions + + //MARK: UITableViewDelegate + + + private func setup() { + // all setup should be done here + + } +} + +// MARK: ResendViewInterface +extension ResendViewController: ResendViewInterface { + +} + + +extension ResendViewController: UITableViewDelegate { + func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { + print(indexPath) + + } + +} + + +extension ResendViewController: UITableViewDataSource { + //MARK: UITableViewDataSource + + + func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { + return model.count + } + + func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { + let cell = tableView.dequeueReusableCell(withIdentifier: "ResendTableViewCell", for: indexPath) as! ResendTableViewCell + cell.setup() + return cell + } +} diff --git a/GMERemittance/Module/Resend/User Interface/View/ResendViewInterface.swift b/GMERemittance/Module/Resend/User Interface/View/ResendViewInterface.swift new file mode 100644 index 00000000..c0bbf823 --- /dev/null +++ b/GMERemittance/Module/Resend/User Interface/View/ResendViewInterface.swift @@ -0,0 +1,10 @@ +// +// ResendViewInterface.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +protocol ResendViewInterface: class { +} diff --git a/GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframe.swift b/GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframe.swift new file mode 100644 index 00000000..4b6b1bd5 --- /dev/null +++ b/GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframe.swift @@ -0,0 +1,34 @@ +// +// ResendWireframe.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import UIKit + +class ResendWireframe { + weak var view: UIViewController! +} + +extension ResendWireframe: ResendWireframeInput { + + var storyboardName: String {return "Resend"} + + func getMainView() -> UIViewController { + let service = ResendService() + let interactor = ResendInteractor(service: service) + let presenter = ResendPresenter() + let viewController = viewControllerFromStoryboard(of: ResendViewController.self) + + viewController.presenter = presenter + interactor.output = presenter + presenter.interactor = interactor + presenter.wireframe = self + presenter.view = viewController + + self.view = viewController + return viewController + } +} diff --git a/GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframeInput.swift b/GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframeInput.swift new file mode 100644 index 00000000..cdee38be --- /dev/null +++ b/GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframeInput.swift @@ -0,0 +1,13 @@ +// +// ResendWireframeInput.swift +// GME Remit +// +// Created by gme_2 on 18/03/2019. +//Copyright © 2019 Gobal Money Express Co. Ltd. All rights reserved. +// + +import Foundation + +protocol ResendWireframeInput: WireframeInput { + +}