VPCamera3/SwiftProject/SwiftProject/CCKit/UserInfo/UserInfo.swift
2024-04-03 19:31:00 +08:00

23 lines
538 B
Swift

//
// UserInfo.swift
// SwiftProject
//
// Created by aaa on 2024/4/1.
//
import Foundation
class UserInfo: NSObject {
static let sharedInstance = UserInfo()
var paymentState:Bool = false {
didSet{
NotificationCenter.default.post(name: Notification.Name(rawValue: "kUserVipStateChangeNotification"), object: self, userInfo:nil)
}
}
var paymentProductIdentifier:String? //id
var isMemberShip:Bool {
get {
return paymentState
}
}
}