Blame view

App/utils/AppUtils.swift 643 Bytes
1341bf603   Trịnh Văn Quân   version 1.1
1
  //
fbd62afcf   Trịnh Văn Quân   version 1.2.2
2
  import GeneralUtils
1341bf603   Trịnh Văn Quân   version 1.1
3
4
5
6
7
8
  import Foundation
  
  class AppUtils {
  
      static func getListCtruong() -> [CongTruong] {
          var result = [CongTruong]()
fbd62afcf   Trịnh Văn Quân   version 1.2.2
9

1341bf603   Trịnh Văn Quân   version 1.1
10
          var shootItems = [ShootItem]()
fbd62afcf   Trịnh Văn Quân   version 1.2.2
11
12
          shootItems.append(ShootItem(id: 7, name: "1", willShoot: 0))
          shootItems.append(ShootItem(id: 6, name: "2", willShoot: 1))
1341bf603   Trịnh Văn Quân   version 1.1
13
14
  
          var ctruong = CongTruong()
fbd62afcf   Trịnh Văn Quân   version 1.2.2
15
16
          ctruong.companyName = "company1"
          ctruong.constructionName = "ctruong1";
defd9642e   Trịnh Văn Quân   version 1.2
17
          ctruong.noCaptured = 0
fbd62afcf   Trịnh Văn Quân   version 1.2.2
18
19
          ctruong.noRemain = 2
          ctruong.signboard = 0;
1341bf603   Trịnh Văn Quân   version 1.1
20
21
22
23
24
25
          ctruong.shootItems = shootItems
          result.append(ctruong)
  
          return result
      }
  }