#import <Foundation/Foundation.h>
@protocol LicenseStoreProtocol <NSObject>
@property (readonly, nullable) NSString *errorMessage;
@property (readonly, nullable) NSError *error;
@property (nullable, readwrite) NSString *licenseUsername;
@property (nullable, readwrite) NSString *licensePassword;
@property (nonnull, readwrite) NSString *licenseDeviceID;
@property (nullable, readwrite) NSString *onPremConfigUrl NS_SWIFT_NAME(onPremConfigURL);
- (BOOL)validCustomOnPremConfigUrlWithPredefinedUrl:(NSString *)onPremConfigUrl;
- (BOOL)isValid;
- (BOOL)isWithinCheckInterval;
- (BOOL)isWithinOfflineInterval;
- (void)performLicenseCheckWithCompletion:(nonnull void(^)(BOOL success))onCompletion;
/**
Send the update work info if there is a valid license username and a valid threema id.
If there was nothing changed and the last request was earlier then 24 hours, the request will not be send to the server.
@param force: Send request anyway
*/
- (void)performUpdateWorkInfoForce:(BOOL)force NS_SWIFT_NAME(performUpdateWorkInfo(force:));
- (void)performUpdateWorkInfo;
- (void)deleteLicense;
@end
@interface LicenseStore : NSObject <LicenseStoreProtocol>
+ (nonnull instancetype)sharedLicenseStore;
- (nonnull instancetype) __unavailable init;
@end
¤ Dauer der Verarbeitung: 0.0 Sekunden
(vorverarbeitet am 2026-11-04)
¤
*© Formatika GbR, Deutschland