SmsParsed class
when the message(sms) is successfully parsed
- Inheritance
-
- Object
- TransactionState
- SmsParsed
Constructors
-
SmsParsed({String? uuid, String? actionId, String? responseMessage, String? status, String? statusMeaning, String? statusDescription, int? matchedParserId, String? messagetype, String? messageSender, String? regex, String? simHni, int? environment, int? requestTimestamp, int? updateTimestamp, int? responseTimestamp, Map<
String, String> ? inputExtras, Map<String, String> ? parsedVariables, List<String> ? sessionMessages}) -
SmsParsed.fromMap(Map<
String, dynamic> json) -
factory
Properties
- actionId → String?
-
The action id from out supported operators page
final
- environment → int?
-
0 for normal, 1 for debug, 2 for test
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputExtras
→ Map<
String, String> ? -
A HashMap object of all the extras you passed in using .extra(key, value)
final
- matchedParserId → int?
-
Unique identifier for the parser which matched, causing this transaction to update
final
- messageSender → String?
-
If SMS, the sender id from the parser form, null if USSD
final
- messagetype → String?
-
“ussd” or “sms”
final
-
parsedVariables
→ Map<
String, String> ? -
A HashMap object of all named groups parsed out of the response message based on your regex
final
- regex → String?
-
Regular expression you specified in the parser form
final
- requestTimestamp → int?
-
Time user initiated transaction (Unix time)
final
- responseMessage → String?
-
Full message used for parsing
final
- responseTimestamp → int?
-
(depreciated) Same as updated_timestamp
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sessionMessages
→ List<
String> ? -
Array of all USSD session messages in order encountered
final
- simHni → String?
-
The Home Network Identifier (MCC + MNC) of the SIM used
final
- status → String?
-
“pending”, “failed” or “succeeded”
final
- statusDescription → String?
-
Message you specified for the latest matched parser
final
- statusMeaning → String?
-
What you specified for the latest matched parser or one of the default failed cases above
final
- updateTimestamp → int?
-
Time at which the transaction last updated (SMS arrival or USSD finished)
final
- uuid → String?
-
Unique Identifier for the transaction
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited