mirror of
https://github.com/openharmony/notification_notification_cangjie_wrapper.git
synced 2026-07-01 06:41:51 -04:00
@@ -19,21 +19,39 @@ import ohos.labels.APILevel
|
||||
import ohos.value_type.CommonEventValueType
|
||||
import std.collection.HashMap
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public class CommonEventData {
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var event: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var bundleName: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var code: Int32
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var data: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var parameters: HashMap<String, CommonEventValueType>
|
||||
|
||||
public init() {
|
||||
@@ -44,4 +62,4 @@ public class CommonEventData {
|
||||
this.data = String()
|
||||
this.parameters = HashMap<String, CommonEventValueType>()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+692
-172
File diff suppressed because it is too large
Load Diff
@@ -19,30 +19,58 @@ import ohos.labels.APILevel
|
||||
import ohos.value_type.CommonEventValueType
|
||||
import std.collection.HashMap
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public class CommonEventPublishData {
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var bundleName: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var data: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var code: Int32
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var subscriberPermissions: Array<String>
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var isOrdered: Bool
|
||||
|
||||
@!APILevel[since: "22", permission: "ohos.permission.COMMONEVENT_STICKY", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
permission: "ohos.permission.COMMONEVENT_STICKY",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var isSticky: Bool
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var parameters: HashMap<String, CommonEventValueType>
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public init(
|
||||
bundleName!: String = "",
|
||||
data!: String = "",
|
||||
@@ -61,4 +89,4 @@ public class CommonEventPublishData {
|
||||
this.isSticky = true
|
||||
this.parameters = HashMap()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,27 +17,51 @@ package ohos.common_event_subscribe_info
|
||||
|
||||
import ohos.labels.APILevel
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public class CommonEventSubscribeInfo {
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var events: Array<String>
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var priority: Int32
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var userId: Int32
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var publisherPermission: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var publisherDeviceId: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public var publisherBundleName: String
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public init(
|
||||
events: Array<String>,
|
||||
publisherPermission!: String = "",
|
||||
@@ -54,4 +78,4 @@ public class CommonEventSubscribeInfo {
|
||||
this.publisherDeviceId = String()
|
||||
this.publisherBundleName = String()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,10 +17,13 @@ package ohos.common_event_subscriber
|
||||
|
||||
import ohos.labels.APILevel
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public class CommonEventSubscriber {
|
||||
|
||||
public init() {
|
||||
super()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+59
-13
@@ -17,18 +17,64 @@ package ohos.value_type
|
||||
|
||||
import ohos.labels.APILevel
|
||||
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"]
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
public enum CommonEventValueType {
|
||||
@!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] Int32Value(Int32)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] Float64Value(Float64)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] StringValue(String)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] BoolValue(Bool)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] FD(Int32)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] ArrayString(Array<String>)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] ArrayInt32(Array<Int32>)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] ArrayInt64(Array<Int64>)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] ArrayBool(Array<Bool>)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] ArrayFloat64(Array<Float64>)
|
||||
| @!APILevel[since: "22", syscap: "SystemCapability.Notification.CommonEvent"] ArrayFD(Array<Int32>)
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
] Int32Value(Int32)
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
|
|
||||
@!APILevel[
|
||||
since: "22",
|
||||
syscap: "SystemCapability.Notification.CommonEvent"
|
||||
]
|
||||
| ...
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user