1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/mobilemessage/interfaces/nsIDOMMozMobileMessageThread.idl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,32 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#include "domstubs.idl" 1.9 +#include "nsISupports.idl" 1.10 + 1.11 +[scriptable, builtinclass, uuid(525ad3a6-59a9-11e3-bdc3-836486cb58be)] 1.12 +interface nsIDOMMozMobileMessageThread : nsISupports 1.13 +{ 1.14 + // Unique identity of the thread. 1.15 + readonly attribute unsigned long long id; 1.16 + 1.17 + // Last (MMS) message subject. 1.18 + readonly attribute DOMString lastMessageSubject; 1.19 + 1.20 + // Message body of the last message in the thread. 1.21 + readonly attribute DOMString body; 1.22 + 1.23 + // Total unread messages in the thread. 1.24 + readonly attribute unsigned long long unreadCount; 1.25 + 1.26 + // Participant addresses of the thread. 1.27 + [implicit_jscontext] 1.28 + readonly attribute jsval participants; // DOMString[] 1.29 + 1.30 + // Timestamp of the last message in the thread. 1.31 + readonly attribute DOMTimeStamp timestamp; 1.32 + 1.33 + // Message type of the last message in the thread. 1.34 + readonly attribute DOMString lastMessageType; 1.35 +};