//
//  EntriesListModels.swift
//  xDrip
//
//  Created by Artem Kalmykov on 17.03.2020.
//  Copyright (c) 2020 Faifly. 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

enum EntriesList {
    // MARK: Models
    
    struct SectionViewModel {
        let title: String
        var items: [EntriesListTableViewCell.ViewModel]
    }
    
    // MARK: Use cases
    
    enum UpdateData {
        struct Request {
        }
        
        struct Response {
            let entries: [AbstractEntry]
        }
        
        struct ViewModel {
            let items: [SectionViewModel]
            let editEnabled: Bool
        }
    }
    
    enum Cancel {
        struct Request {
        }
        
        struct Response {
        }
        
        struct ViewModel {
        }
    }
    
    enum DeleteEntry {
        struct Request {
            let index: Int
        }
        
        struct Response {
        }
        
        struct ViewModel {
        }
    }
    
    enum ShowSelectedEntry {
        struct Request {
            let index: Int
        }
        
        struct Response {
        }
        
        struct ViewModel {
        }
    }
}
