Blame view
App/utils/AppUtils.swift
643 Bytes
|
1341bf603
|
1 |
// |
|
fbd62afcf
|
2 |
import GeneralUtils |
|
1341bf603
|
3 4 5 6 7 8 |
import Foundation
class AppUtils {
static func getListCtruong() -> [CongTruong] {
var result = [CongTruong]()
|
|
fbd62afcf
|
9 |
|
|
1341bf603
|
10 |
var shootItems = [ShootItem]() |
|
fbd62afcf
|
11 12 |
shootItems.append(ShootItem(id: 7, name: "1", willShoot: 0))
shootItems.append(ShootItem(id: 6, name: "2", willShoot: 1))
|
|
1341bf603
|
13 14 |
var ctruong = CongTruong()
|
|
fbd62afcf
|
15 16 |
ctruong.companyName = "company1"
ctruong.constructionName = "ctruong1";
|
|
defd9642e
|
17 |
ctruong.noCaptured = 0 |
|
fbd62afcf
|
18 19 |
ctruong.noRemain = 2
ctruong.signboard = 0;
|
|
1341bf603
|
20 21 22 23 24 25 |
ctruong.shootItems = shootItems
result.append(ctruong)
return result
}
}
|