123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //
- // KMBatchCollectionViewModel.swift
- // PDF Master
- //
- // Created by lizhe on 2023/1/12.
- //
- import Cocoa
- enum KMBatchCollectionViewType: String {
- case unknow = "unknow"
- case convertPDF = "ConvertPDF"
- case compress = "Compress"
- case security = "Security"
- case watermark = "Watermark"
- case background = "Background"
- case headerAndFooter = "Header & Footer"
- case batesNumber = "Bates Number"
- case batchRemove = "Batch Remove"
-
- static func typeOfRawVale(value: String) -> KMBatchCollectionViewType {
- var type: KMBatchCollectionViewType
- switch value {
- case "ConvertPDF": type = .convertPDF
- case "Compress": type = .compress
- case "Security": type = .security
- case "Watermark": type = .watermark
- case "Background": type = .background
- case "Header & Footer": type = .headerAndFooter
- case "Bates Number": type = .batesNumber
- case "Batch Remove": type = .batchRemove
- default:
- type = .convertPDF
- }
- return type
- }
- }
- class KMBatchCollectionViewModel: NSObject {
- var imageString: String = ""
- var selectImageString: String = ""
- var title: String = ""
- var isSelect: Bool = false
- var type: KMBatchCollectionViewType = .convertPDF
- }
|