//
//  RegisterPresenter.swift
//  Capo
//
//  Created by Артем Валиев on 12/12/2018.
//  Copyright (c) 2018 Артем Валиев. All rights reserved.
//
//  This file was generated by the Clean Swift Xcode Templates so
//  you can apply clean architecture to your iOS and Mac projects,
//  see http://clean-swift.com
//

import UIKit

protocol RegisterPresentationLogic
{
    func presentRegisteringSuccess(response: Register.CreateUser.Response)
}

class RegisterPresenter: RegisterPresentationLogic
{
  weak var viewController: RegisterDisplayLogic?
  
    func presentRegisteringSuccess(response: Register.CreateUser.Response) {
        let vm = Register.CreateUser.ViewModel(credentials: response.credentials)
        viewController?.displayRegisternigSuccess(viewModel: vm)
    }

}
