SBSParserResult.h
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------//
2 // This file is part of the Scandit Parsing Library //
3 // //
4 // Copyright (c) 2016-2017 Scandit AG. All rights reserved //
5 //------------------------------------------------------------------------------------------------//
6 
7 #import <Foundation/Foundation.h>
8 #import "SBSParserField.h"
9 #import "SBSCommon.h"
10 
27 @interface SBSParserResult : NSObject
28 
34 @property (nonatomic, readonly, nonnull) NSString *jsonString;
35 @property (nonatomic, readonly, nonnull) NSDictionary<NSString *, SBSParserField *> *fieldsDict SBS_DEPRECATED_MSG_ATTRIBUTE("Use fieldsByName instead.");
36 @property (nonatomic, readonly, nonnull) NSArray<SBSParserField *> *fieldsArray SBS_DEPRECATED_MSG_ATTRIBUTE("Use fields instead.");
44 @property (nonatomic, readonly, nonnull) NSDictionary<NSString *, SBSParserField *> *fieldsByName;
45 
53 @property (nonatomic, readonly, nonnull) NSArray<SBSParserField *> *fields;
54 
55 @end
#define SBS_DEPRECATED_MSG_ATTRIBUTE(message)
Definition: SBSCommon.h:21
NSArray< SBSParserField * > * fieldsArray
Definition: SBSParserResult.h:36
NSString * jsonString
The result object as a serialized JSON string.
Definition: SBSParserResult.h:34
NSDictionary< NSString *, SBSParserField * > * fieldsDict
Definition: SBSParserResult.h:35
NSArray< SBSParserField * > * fields
The fields contained in the result as an array.
Definition: SBSParserResult.h:53
Holds the result of a successfully parsed data string.
Definition: SBSParserResult.h:27
NSDictionary< NSString *, SBSParserField * > * fieldsByName
The fields contained in the result as a dictionary.
Definition: SBSParserResult.h:44