WebAPI/LogAPI: Difference between revisions

Line 24: Line 24:
  };
  };


interface LogIterator  
interface LogIterator {
{
   DOMRequest next(optional unsigned short n);
   DOMRequest next(optional unsigned short n);
   attribute unsigned long position;
   attribute unsigned long position;
};
};


 
dictionary LogFindOptions {
dictionary LogFindOptions  
{
   attribute unsigned long maxRecords;
   attribute unsigned long maxRecords;
   attribute DOMString contactId;
   attribute DOMString contactId;
Line 40: Line 37:
};
};


interface LogEntryProperties  
interface LogEntryProperties {
{
   attribute DOMString type;                      // possible values: ['incoming', 'outgoing'']
   attribute DOMString type;                      // possible values: ['incoming', 'outgoing'']
   attribute DOMString status;                    // [missed, new]
   attribute DOMString status;                    // [missed, new]
Line 54: Line 50:


[Constructor(LogEntryProperties properties)]
[Constructor(LogEntryProperties properties)]
interface LogEntry : LogEntryProperties  
interface LogEntry : LogEntryProperties {
{
   readonly attribute DOMString id;
   readonly attribute DOMString id;
   readonly attribute DOMTimestamp timestamp;                  // When this happened
   readonly attribute DOMTimestamp timestamp;                  // When this happened
};
};
172

edits