//
//  GGReviewResult.h
//  iLocalizeSDK
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface GGReviewResult : NSObject

@property (nonatomic, copy) NSString *text;
@property (nonatomic, copy, nullable) NSString *stringId;
@property (nonatomic, copy, nullable) NSString *sourceText;
@property (nonatomic, strong) NSDictionary<NSString *, NSString *> *translations;
@property (nonatomic, copy, nullable) NSString *suggestion;
@property (nonatomic, copy) NSString *severity;  // ok, info, warning, error
@property (nonatomic, copy, nullable) NSString *issue;

- (BOOL)hasIssue;
- (BOOL)isMatched;

+ (NSArray<GGReviewResult *> *)resultsFromArray:(NSArray<NSDictionary *> *)array;

@end

NS_ASSUME_NONNULL_END
