Browse Source

resend module added

pull/1/head
gme_2 6 years ago
parent
commit
514c55446a
  1. BIN
      .DS_Store
  2. 128
      GME Remit.xcodeproj/project.pbxproj
  3. 29
      GMERemittance/AppDelegate.swift
  4. 31
      GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractor.swift
  5. 15
      GMERemittance/Module/Resend/Application Logic/Interactor/ResendInteractorIO.swift
  6. 18
      GMERemittance/Module/Resend/Application Logic/Service/ResendService.swift
  7. 13
      GMERemittance/Module/Resend/Application Logic/Service/ResendServiceType.swift
  8. 11
      GMERemittance/Module/Resend/Module Interface/ResendModuleInterface.swift
  9. 32
      GMERemittance/Module/Resend/User Interface/Presenter/ResendPresenter.swift
  10. 32
      GMERemittance/Module/Resend/User Interface/View/Resend.storyboard
  11. 22
      GMERemittance/Module/Resend/User Interface/View/ResendTableViewCell.swift
  12. 70
      GMERemittance/Module/Resend/User Interface/View/ResendViewController.swift
  13. 10
      GMERemittance/Module/Resend/User Interface/View/ResendViewInterface.swift
  14. 34
      GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframe.swift
  15. 13
      GMERemittance/Module/Resend/User Interface/Wireframe/ResendWireframeInput.swift

BIN
.DS_Store

128
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 = "<group>"; };
D97785A9215DD04400754079 /* TransactionHistoryTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionHistoryTableViewCell.swift; sourceTree = "<group>"; };
D97785AB215DD23400754079 /* TransactionModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionModel.swift; sourceTree = "<group>"; };
D979060A223F58410025BD5B /* ResendModuleInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendModuleInterface.swift; sourceTree = "<group>"; };
D979060D223F58410025BD5B /* ResendServiceType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendServiceType.swift; sourceTree = "<group>"; };
D979060E223F58410025BD5B /* ResendService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendService.swift; sourceTree = "<group>"; };
D9790610223F58410025BD5B /* ResendInteractor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendInteractor.swift; sourceTree = "<group>"; };
D9790611223F58410025BD5B /* ResendInteractorIO.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendInteractorIO.swift; sourceTree = "<group>"; };
D9790614223F58410025BD5B /* ResendPresenter.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendPresenter.swift; sourceTree = "<group>"; };
D9790616223F58410025BD5B /* ResendWireframeInput.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendWireframeInput.swift; sourceTree = "<group>"; };
D9790617223F58410025BD5B /* ResendWireframe.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendWireframe.swift; sourceTree = "<group>"; };
D979061A223F58410025BD5B /* ResendViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendViewController.swift; sourceTree = "<group>"; };
D979061B223F58410025BD5B /* ResendViewInterface.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResendViewInterface.swift; sourceTree = "<group>"; };
D979061C223F58410025BD5B /* Resend.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Resend.storyboard; sourceTree = "<group>"; };
D9835812221F826E00748962 /* ne */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ne; path = ne.lproj/Localizable.strings; sourceTree = "<group>"; };
D9835814221F918100748962 /* bn */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = bn; path = bn.lproj/Localizable.strings; sourceTree = "<group>"; };
D9835815221FD7B900748962 /* vi-VN */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "vi-VN"; path = "vi-VN.lproj/Localizable.strings"; sourceTree = "<group>"; };
D9899D02222DFF9D00E983CA /* uz */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = uz; path = uz.lproj/Localizable.strings; sourceTree = "<group>"; };
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 = "<group>"; };
D9A060BE223F5C9600F5D7C4 /* ResendTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResendTableViewCell.swift; sourceTree = "<group>"; };
D9A458FD2223E5AD003123D4 /* ru-RU */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = "ru-RU"; path = "ru-RU.lproj/Localizable.strings"; sourceTree = "<group>"; };
D9AFE855215C7166005F3A25 /* HomeCollectionTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HomeCollectionTableViewCell.swift; sourceTree = "<group>"; };
D9B39675214F7DDC0072A9B8 /* ImageCroper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImageCroper.swift; sourceTree = "<group>"; };
@ -5193,6 +5217,7 @@
D907AB96212AA8A300915A87 /* Module */ = {
isa = PBXGroup;
children = (
D9790608223F58410025BD5B /* Resend */,
D92E65522226209F004D1B3D /* SendMoneyCode */,
D9BE021321E2DD44003AA8C7 /* PaymentSelection */,
04702FF121CA3EAE00B6C9C3 /* AutoDebit */,
@ -9769,6 +9794,97 @@
path = Cell;
sourceTree = "<group>";
};
D9790608223F58410025BD5B /* Resend */ = {
isa = PBXGroup;
children = (
D9790609223F58410025BD5B /* Module Interface */,
D979060B223F58410025BD5B /* Application Logic */,
D9790612223F58410025BD5B /* User Interface */,
);
path = Resend;
sourceTree = "<group>";
};
D9790609223F58410025BD5B /* Module Interface */ = {
isa = PBXGroup;
children = (
D979060A223F58410025BD5B /* ResendModuleInterface.swift */,
);
path = "Module Interface";
sourceTree = "<group>";
};
D979060B223F58410025BD5B /* Application Logic */ = {
isa = PBXGroup;
children = (
D979060C223F58410025BD5B /* Service */,
D979060F223F58410025BD5B /* Interactor */,
);
path = "Application Logic";
sourceTree = "<group>";
};
D979060C223F58410025BD5B /* Service */ = {
isa = PBXGroup;
children = (
D979060D223F58410025BD5B /* ResendServiceType.swift */,
D979060E223F58410025BD5B /* ResendService.swift */,
);
path = Service;
sourceTree = "<group>";
};
D979060F223F58410025BD5B /* Interactor */ = {
isa = PBXGroup;
children = (
D9790610223F58410025BD5B /* ResendInteractor.swift */,
D9790611223F58410025BD5B /* ResendInteractorIO.swift */,
);
path = Interactor;
sourceTree = "<group>";
};
D9790612223F58410025BD5B /* User Interface */ = {
isa = PBXGroup;
children = (
D9790613223F58410025BD5B /* Presenter */,
D9790615223F58410025BD5B /* Wireframe */,
D9790618223F58410025BD5B /* View */,
);
path = "User Interface";
sourceTree = "<group>";
};
D9790613223F58410025BD5B /* Presenter */ = {
isa = PBXGroup;
children = (
D9790614223F58410025BD5B /* ResendPresenter.swift */,
);
path = Presenter;
sourceTree = "<group>";
};
D9790615223F58410025BD5B /* Wireframe */ = {
isa = PBXGroup;
children = (
D9790616223F58410025BD5B /* ResendWireframeInput.swift */,
D9790617223F58410025BD5B /* ResendWireframe.swift */,
);
path = Wireframe;
sourceTree = "<group>";
};
D9790618223F58410025BD5B /* View */ = {
isa = PBXGroup;
children = (
D9790619223F58410025BD5B /* ViewModels */,
D979061A223F58410025BD5B /* ResendViewController.swift */,
D979061B223F58410025BD5B /* ResendViewInterface.swift */,
D979061C223F58410025BD5B /* Resend.storyboard */,
D9A060BE223F5C9600F5D7C4 /* ResendTableViewCell.swift */,
);
path = View;
sourceTree = "<group>";
};
D9790619223F58410025BD5B /* ViewModels */ = {
isa = PBXGroup;
children = (
);
path = ViewModels;
sourceTree = "<group>";
};
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 */,

29
GMERemittance/AppDelegate.swift

@ -173,27 +173,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
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,

31
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 {
}

15
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 {
}

18
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
}

13
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 {
}

11
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 {
}

32
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 {
}

32
GMERemittance/Module/Resend/User Interface/View/Resend.storyboard

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14460.31" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="HSb-ou-7T5">
<device id="retina4_7" orientation="portrait">
<adaptation id="fullscreen"/>
</device>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14460.20"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Resend-->
<scene sceneID="R60-Pu-Hpy">
<objects>
<viewController storyboardIdentifier="ResendViewController" title="Resend" id="HSb-ou-7T5" customClass="ResendViewController" customModule="GME_Remit" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="y1H-iV-BwG"/>
<viewControllerLayoutGuide type="bottom" id="PYB-Kq-ghm"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="9Uc-9s-KgO">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="8je-5K-XuW" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-91" y="233"/>
</scene>
</scenes>
<color key="tintColor" red="0.78177064659999995" green="0.55228364470000002" blue="0.018981300289999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</document>

22
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() {
}
}

70
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
}
}

10
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 {
}

34
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
}
}

13
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 {
}
Loading…
Cancel
Save