pEpForiOS/UI/Folder/ViewModel/FolderCellViewModel.swift
changeset 2191 a01eb69e9664
parent 2045 01b83254d3de
child 2664 874827a49c0f
equal deleted inserted replaced
2190:4fe9e5ba269d 2191:a01eb69e9664
     8 
     8 
     9 import Foundation
     9 import Foundation
    10 import MessageModel
    10 import MessageModel
    11 
    11 
    12 public class FolderCellViewModel {
    12 public class FolderCellViewModel {
    13 
       
    14     public var icon: UIImage {
    13     public var icon: UIImage {
    15         return self.folder.folderType.getIconType()
    14         return self.folder.folderType.getIconType()
    16     }
    15     }
       
    16 
    17     public var title : String {
    17     public var title : String {
    18         return self.name
    18         return self.name
    19     }
    19     }
       
    20 
    20     public var number: Int {
    21     public var number: Int {
    21         return 0 //fake number
    22         return 0 //fake number
    22     }
    23     }
       
    24 
    23     public var arrow: UIImage {
    25     public var arrow: UIImage {
    24         return UIImage(named: "arrow_down_icon")!
    26         return UIImage(named: "arrow_down_icon")!
    25     }
    27     }
    26 
    28 
    27     var folder: Folder
    29     var folder: Folder
    41     }
    43     }
    42 
    44 
    43     var leftPadding: Int {
    45     var leftPadding: Int {
    44         return level
    46         return level
    45     }
    47     }
    46     
       
    47 }
    48 }