node-pdu
    Preparing search index...

    Class Part

    Represents a part of a segmented SMS message.

    Used for messages that exceed the size limit for a single SMS and must be split. Each part contains a segment of the full message, facilitating the reassembly of the complete message by the recipient.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructs a new Part instance for a segmented SMS message.

      Parameters

      • data: string

        The raw data of this message part

      • size: number

        The size of this part, including headers and content

      • text: string

        The decoded text content of this part

      • Optionalheader: Header

        An optional header for concatenated message support

      Returns Part

    Properties

    data: string
    header: null | Header
    size: number
    text: string

    Methods

    • Generates a string representation of this SMS part, suitable for transmission.

      This method constructs the PDU string for this part by concatenating the PDU start, the size of the part, any headers, and the data content.

      Parameters

      • pdu: Submit | Deliver

        The PDU (either Deliver or Submit) that this part belongs to.

      Returns string

      A string representing the PDU for this part of the message.