You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

50 lines
985 B

class BusinessInstance {
factory BusinessInstance() => _getInstance();
static BusinessInstance get instance => _getInstance();
static BusinessInstance? _instance;
late String _businessToken;
late String _businessTenant;
late String _expirationTime;
late String _serviceStatus;
String get businessToken => _businessToken;
set businessToken(String value) {
_businessToken = value;
}
BusinessInstance._internal() {
//单例初始化
}
static BusinessInstance _getInstance() {
if (_instance == null) {
_instance = BusinessInstance._internal();
}
return _instance!;
}
String get businessTenant => _businessTenant;
set businessTenant(String value) {
_businessTenant = value;
}
String get expirationTime => _expirationTime;
set expirationTime(String value) {
_expirationTime = value;
}
String get serviceStatus => _serviceStatus;
set serviceStatus(String value) {
_serviceStatus = value;
}
}