Blame view

App/model/CongTruong.swift 633 Bytes
d774f0637   Trịnh Văn Quân   fisrt comit
1
  import Foundation
defd9642e   Trịnh Văn Quân   version 1.2
2
  import GeneralUtils
d774f0637   Trịnh Văn Quân   fisrt comit
3

defd9642e   Trịnh Văn Quân   version 1.2
4
5
6
7
8
  class CongTruong: Mappable {
      var id: Int?
      var companyName: String?
      var constructionName: String?
      var noCaptured: Int?, noRemain: Int?
1341bf603   Trịnh Văn Quân   version 1.1
9
      var shootItems: [ShootItem]?
defd9642e   Trịnh Văn Quân   version 1.2
10
      var signboard: Int?
1341bf603   Trịnh Văn Quân   version 1.1
11

defd9642e   Trịnh Văn Quân   version 1.2
12
13
14
      // region: ========== Mappable
      init() {}
      required init?(map: Map) {}
1341bf603   Trịnh Văn Quân   version 1.1
15

defd9642e   Trịnh Văn Quân   version 1.2
16
17
18
19
20
21
22
23
24
      func mapping(map: Map) {
          companyName <- map["companyName"]
          constructionName <- map["constructionName"]
          noCaptured <- map["noCaptured"]
          noRemain <- map["noRemain"]
          shootItems <- map["shootingItems"]
          signboard <- map["signboard"]
      }
      //endregion
d774f0637   Trịnh Văn Quân   fisrt comit
25
  }