RcsSegmentedMessage class
============================================================================= CLASS: RcsSegmentedMessage PURPOSE: Calculates how an RCS message is billed. RCS text is UTF-8, so sizes are counted in bytes rather than GSM-7 / UCS-2 characters.
Constructors
- RcsSegmentedMessage(String message, [RcsRegion region = RcsRegion.us])
-
Calculates the RCS billing of
messageinregion.
Properties
- encodingName → String
-
RCS text is always sent as UTF-8.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The message as passed in.
final
- messageSize ↔ int
-
Size of the message in bits.
latefinal
- messageType ↔ RcsMessageType
-
How the message is billed.
latefinal
- numberOfBytes ↔ int
-
Size of the message in UTF-8 bytes.
latefinal
- region → RcsRegion
-
Region the message is billed in.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
segments
↔ List<
RcsSegment> -
The billable segments.
latefinal
- segmentsCount ↔ int
-
Number of billable segments. 0 for an empty message.
latefinal
- totalSize ↔ int
-
Total size in bits. RCS has no headers, so this equals messageSize.
latefinal
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited