Head.swift 578 B

12345678910111213141516171819202122232425262728
  1. //
  2. // Head.swift
  3. // O2Platform
  4. //
  5. // Created by 程剑 on 2017/7/12.
  6. // Copyright © 2017年 zoneland. All rights reserved.
  7. //
  8. import Foundation
  9. class HeadTitle {
  10. var name:String?
  11. var icon:String?
  12. var isBar = false
  13. var barText: [OrgUnit]?
  14. init(name : String, icon : String) {
  15. self.name = name
  16. self.icon = icon
  17. }
  18. init(name : String, barText: [OrgUnit], icon : String = "", isBar: Bool = true) {
  19. self.name = name
  20. self.barText = barText
  21. self.icon = icon
  22. self.isBar = isBar
  23. }
  24. }