You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: declarations/src/main/kotlin/alarms/alarms.kt
+28-32Lines changed: 28 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -3,42 +3,38 @@ package alarms
3
3
importbrowser.Event
4
4
importkotlin.js.Promise
5
5
6
-
externalclassAlarm {
7
-
/**
8
-
* Name of this alarm.
9
-
*/
10
-
var name:String
11
-
12
-
/**
13
-
* Time when the alarm is scheduled to fire, in milliseconds past the epoch.
14
-
*/
15
-
var scheduledTime:Int
16
-
17
-
/**
18
-
* When present, signals that the alarm triggers periodically after so many minutes.
19
-
*/
20
-
var periodInMinutes:Int?
21
-
}
6
+
classAlarm(
7
+
/**
8
+
* Name of this alarm.
9
+
*/
10
+
varname:String,
11
+
/**
12
+
* Time when the alarm is scheduled to fire, in milliseconds past the epoch.
13
+
*/
14
+
varscheduledTime:Int,
15
+
/**
16
+
* When present, signals that the alarm triggers periodically after so many minutes.
17
+
*/
18
+
varperiodInMinutes:Int? = null
19
+
)
22
20
23
21
/**
24
22
* Details about the alarm. The alarm first fires either at 'when' milliseconds past the epoch (if 'when' is provided), after 'delayInMinutes' minutes from the current time (if 'delayInMinutes' is provided instead), or after 'periodInMinutes' minutes from the current time (if only 'periodInMinutes' is provided). Users should never provide both 'when' and 'delayInMinutes'. If 'periodInMinutes' is provided, then the alarm recurs repeatedly after that many minutes.
25
23
*/
26
-
externalclassAlarmInfo {
27
-
/**
28
-
* Time when the alarm is scheduled to first fire, in milliseconds past the epoch.
29
-
*/
30
-
var `when`:Int?
31
-
32
-
/**
33
-
* Number of minutes from the current time after which the alarm should first fire.
34
-
*/
35
-
var delayInMinutes:Int?
36
-
37
-
/**
38
-
* Number of minutes after which the alarm should recur repeatedly.
39
-
*/
40
-
var periodInMinutes:Int?
41
-
}
24
+
classAlarmInfo(
25
+
/**
26
+
* Time when the alarm is scheduled to first fire, in milliseconds past the epoch.
27
+
*/
28
+
var `when`: Int? = null,
29
+
/**
30
+
* Number of minutes from the current time after which the alarm should first fire.
31
+
*/
32
+
vardelayInMinutes:Int? = null,
33
+
/**
34
+
* Number of minutes after which the alarm should recur repeatedly.
* A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder.
16
16
*/
17
-
externalclassBookmarkTreeNode {
18
-
/**
19
-
* The unique identifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted.
20
-
*/
21
-
var id:String
22
-
23
-
/**
24
-
* The <code>id</code> of the parent folder. Omitted for the root node.
25
-
*/
26
-
var parentId:String?
27
-
28
-
/**
29
-
* The 0-based position of this node within its parent folder.
30
-
*/
31
-
var index:Int?
32
-
33
-
/**
34
-
* The URL navigated to when a user clicks the bookmark. Omitted for folders.
35
-
*/
36
-
var url:String?
37
-
38
-
/**
39
-
* The text displayed for the node.
40
-
*/
41
-
var title:String
42
-
43
-
/**
44
-
* When this node was created, in milliseconds since the epoch (<code>new Date(dateAdded)</code>).
45
-
*/
46
-
var dateAdded:Int?
47
-
48
-
/**
49
-
* When the contents of this folder last changed, in milliseconds since the epoch.
50
-
*/
51
-
var dateGroupModified:Int?
52
-
53
-
/**
54
-
* Indicates the reason why this node is unmodifiable. The <var>managed</var> value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default).
55
-
*/
56
-
var unmodifiable:BookmarkTreeNodeUnmodifiable?
57
-
58
-
/**
59
-
* Indicates the type of the BookmarkTreeNode, which can be one of bookmark, folder or separator.
60
-
*/
61
-
var type:BookmarkTreeNodeType?
62
-
63
-
/**
64
-
* An ordered list of children of this node.
65
-
*/
66
-
var children:Array<BookmarkTreeNode>
67
-
}
17
+
classBookmarkTreeNode(
18
+
/**
19
+
* The unique identifier for the node. IDs are unique within the current profile, and they remain valid even after the browser is restarted.
20
+
*/
21
+
varid:String,
22
+
/**
23
+
* The <code>id</code> of the parent folder. Omitted for the root node.
24
+
*/
25
+
varparentId:String? = null,
26
+
/**
27
+
* The 0-based position of this node within its parent folder.
28
+
*/
29
+
varindex:Int? = null,
30
+
/**
31
+
* The URL navigated to when a user clicks the bookmark. Omitted for folders.
32
+
*/
33
+
varurl:String? = null,
34
+
/**
35
+
* The text displayed for the node.
36
+
*/
37
+
vartitle:String,
38
+
/**
39
+
* When this node was created, in milliseconds since the epoch (<code>new Date(dateAdded)</code>).
40
+
*/
41
+
vardateAdded:Int? = null,
42
+
/**
43
+
* When the contents of this folder last changed, in milliseconds since the epoch.
44
+
*/
45
+
vardateGroupModified:Int? = null,
46
+
/**
47
+
* Indicates the reason why this node is unmodifiable. The <var>managed</var> value indicates that this node was configured by the system administrator or by the custodian of a supervised user. Omitted if the node can be modified by the user and the extension (default).
* Indicates the type of the BookmarkTreeNode, which can be one of bookmark, folder or separator.
52
+
*/
53
+
vartype:BookmarkTreeNodeType? = null,
54
+
/**
55
+
* An ordered list of children of this node.
56
+
*/
57
+
varchildren:Array<BookmarkTreeNode>? = null
58
+
)
68
59
69
60
/**
70
61
* Object passed to the create() function.
71
62
*/
72
-
externalclassCreateDetails {
73
-
/**
74
-
* Defaults to the Other Bookmarks folder.
75
-
*/
76
-
var parentId:String?
77
-
78
-
var index:Int?
79
-
80
-
var title:String?
81
-
82
-
var url:String?
83
-
84
-
/**
85
-
* Indicates the type of BookmarkTreeNode to create, which can be one of bookmark, folder or separator.
86
-
*/
87
-
var type:BookmarkTreeNodeType?
88
-
}
63
+
classCreateDetails(
64
+
/**
65
+
* Defaults to the Other Bookmarks folder.
66
+
*/
67
+
varparentId:String? = null,
68
+
varindex:Int? = null,
69
+
vartitle:String? = null,
70
+
varurl:String? = null,
71
+
/**
72
+
* Indicates the type of BookmarkTreeNode to create, which can be one of bookmark, folder or separator.
73
+
*/
74
+
vartype:BookmarkTreeNodeType? = null
75
+
)
89
76
90
77
/**
91
78
* A single string-valued id, or an array of string-valued ids */
@@ -94,66 +81,45 @@ typealias IdOrIdList = Any
94
81
/**
95
82
* An object specifying properties and values to match when searching. Produces bookmarks matching all properties.
96
83
*/
97
-
externalclassQuery {
98
-
/**
99
-
* A string of words and quoted phrases that are matched against bookmark URLs and titles.
100
-
*/
101
-
var query:String?
102
-
103
-
/**
104
-
* The URL of the bookmark; matches verbatim. Note that folders have no URL.
105
-
*/
106
-
var url:String?
107
-
108
-
/**
109
-
* The title of the bookmark; matches verbatim.
110
-
*/
111
-
var title:String?
112
-
}
84
+
classQuery(
85
+
/**
86
+
* A string of words and quoted phrases that are matched against bookmark URLs and titles.
87
+
*/
88
+
varquery:String? = null,
89
+
/**
90
+
* The URL of the bookmark; matches verbatim. Note that folders have no URL.
91
+
*/
92
+
varurl:String? = null,
93
+
/**
94
+
* The title of the bookmark; matches verbatim.
95
+
*/
96
+
vartitle:String? = null
97
+
)
113
98
114
99
/**
115
100
* Either a string of words and quoted phrases that are matched against bookmark URLs and titles, or an object. If an object, the properties <code>query</code>, <code>url</code>, and <code>title</code> may be specified and bookmarks matching all specified properties will be produced. */
0 commit comments