This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CreateCustomerInputPresenterApp: CreateCustomerInputPresenter { | |
| var newCustomerForm: NewCustomerForm | |
| var createCustomerOutputPresenter: CreateCustomerOutputPresenterApp | |
| init(newCustomerForm: NewCustomerForm) { | |
| self.newCustomerForm = newCustomerForm | |
| createCustomerOutputPresenter = CreateCustomerOutputPresenterApp() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public struct CreateCustomerInteractor { | |
| var customerRepository: CustomerRepository | |
| var createCustomerOutputPresenter: CreateCustomerOutputPresenter | |
| public init(customerRepository: CustomerRepository, createCustomerOutputPresenter: CreateCustomerOutputPresenter) { | |
| self.customerRepository = customerRepository | |
| self.createCustomerOutputPresenter = createCustomerOutputPresenter | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CreateCustomerOutputPresenterApp: CreateCustomerOutputPresenter { | |
| func show() { | |
| // Apenas chama o router que vai apresentar a lista de clientes. | |
| customersAppRouter.backToList() | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CustomersRouterApp: UINavigationController, CustomersRouter { | |
| func backToList() { | |
| // Fecha tela atual e chama outra. | |
| popToViewController(listCustomersViewController, animated: true) | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "name": "32\" Full HD Flat Smart TV H5103 Series 3", | |
| "description": "Com o Modo futebol, é como se você estivesse realmente no jogo. Ele exibe, de forma precisa e viva, a grama verde do campo e todas as outras cores do estádio. Um poderoso efeito de som multi-surround também permite que você ouça toda a empolgação. Você pode até mesmo ampliar áreas selecionadas da tela para uma melhor visualização. Com apenas o toque de um botão, você pode aproveitar ao máximo o seu esporte favorito com todos os seus amigos.", | |
| "photo": "https://simplest-meuspedidos-arquivos.s3.amazonaws.com/media/imagem_produto/133421/fda44b12-48f7-11e6-996c-0aad52ea90db.jpeg", | |
| "price": 1466.10, | |
| "category_id": 1 | |
| }, | |
| { | |
| "name": "40\" Full HD Flat Smart TV H5103 Series 5", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "id": 1, | |
| "name": "Televisores" | |
| }, | |
| { | |
| "id": 2, | |
| "name": "Celulares" | |
| }, | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import UIKit | |
| import AVFoundation | |
| import PlaygroundSupport | |
| class Player: NSObject { | |
| var player: AVQueuePlayer! | |
| var playerItem: AVPlayerItem! | |
| var playerContext = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| firAuth.createUser(withEmail: email, password: password, completion: nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import plistlib | |
| def main(): | |
| file = os.path.expanduser('path/to/Info.plist') | |
| if os.path.exists(file): | |
| plist_file = plistlib.readPlist(file) | |
| print("{0} ({1})".format(plist_file['CFBundleShortVersionString'], plist_file['CFBundleVersion'])) # Ex. 1.0 (0) | |
| else: | |
| print('File %s does not exist' % file) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"down": true} |