//
//  AlgorithmTools.h
//  CGMAlgo
//
//  Created by yuwell on 2024/11/5.
//
#import <Foundation/Foundation.h>
#import "KRDecodeData.h"
#import "CurrentGlucose.h"

NS_ASSUME_NONNULL_BEGIN

@interface AlgorithmTools : NSObject
/**
 * Calculating historical data
 * @param data {@link HistoryData}
 * @return result of the final glucose {@link CurrentGlucose}
 */
+ (CurrentGlucose *)algorithmGlucose:(HistoryData *)data;
/**
 * Calculating data
 * @param data {@link LatestData}
 * @return result of glucose {@link CurrentGlucose}
 */
+ (CurrentGlucose *)algorithmLatestGlucose:(LatestData *)data;
/**
 * Parsing KR code information
 * @param message QR Code information
 * @return {@link KRDecodeData}
 */
+ (KRDecodeData *)decodeCT:(NSString *)message;
/**
 * get SDK Version
 * @return {@link SDKVersion}
 */
+ (NSString *)getVersionName;

@end


/**
 * Algorithm version
 */
@interface SDKVersion : NSObject

- (NSString *)getPOC4;

- (NSString *)toString;

@end

NS_ASSUME_NONNULL_END
