Commit 31951d08 authored by Simon Redman's avatar Simon Redman

Update header documentation for PACKET_TYPE_SMS_REQUEST

parent 900f5687
...@@ -76,11 +76,12 @@ ...@@ -76,11 +76,12 @@
* Packet sent to request a message be sent * Packet sent to request a message be sent
* *
* The body should look like so: * The body should look like so:
* { "version": 2, * {
* "addresses": <List of Addresses> * "version": 2, // The version of the packet being sent. Compare to SMS_REQUEST_PACKET_VERSION before attempting to handle.
* "textMessage": "Hi mom!", * "addresses": <List<Addresses>>, // The one or many targets of this message
* "attachments": <List of Attached files> * "messageBody": "Hi mom!", // Plain-text string to be sent as the body of the message
* "sub_id": "3859358340534" * "attachments": <List<Attachment>>,// Send one or more attachments with this message. See AttachmentContainer documentation for formatting. (Optional)
* "sub_id": 3859358340534 // Some magic number which tells Android which SIM card to use (Optional, if omitted, sends with the default SIM card)
* } * }
* *
* An AttachmentContainer object looks like: * An AttachmentContainer object looks like:
...@@ -93,6 +94,7 @@ ...@@ -93,6 +94,7 @@
*/ */
#define PACKET_TYPE_SMS_REQUEST QStringLiteral("kdeconnect.sms.request") #define PACKET_TYPE_SMS_REQUEST QStringLiteral("kdeconnect.sms.request")
/** /**
* Packet sent to request the most-recent message in each conversations on the device * Packet sent to request the most-recent message in each conversations on the device
* *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment