ex
Fork of mbed-os-example-mbed5-blinky by
dcs-sdk-java-master/app/src/main/java/com/baidu/duer/dcs/devicemodule/alerts/ApiConstants.java@45:2aa9f933c8d2, 2017-07-18 (annotated)
- Committer:
- TMBOY
- Date:
- Tue Jul 18 16:34:48 2017 +0800
- Revision:
- 45:2aa9f933c8d2
?
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| TMBOY | 45:2aa9f933c8d2 | 1 | /* |
| TMBOY | 45:2aa9f933c8d2 | 2 | * Copyright (c) 2017 Baidu, Inc. All Rights Reserved. |
| TMBOY | 45:2aa9f933c8d2 | 3 | * |
| TMBOY | 45:2aa9f933c8d2 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| TMBOY | 45:2aa9f933c8d2 | 5 | * you may not use this file except in compliance with the License. |
| TMBOY | 45:2aa9f933c8d2 | 6 | * You may obtain a copy of the License at |
| TMBOY | 45:2aa9f933c8d2 | 7 | * |
| TMBOY | 45:2aa9f933c8d2 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| TMBOY | 45:2aa9f933c8d2 | 9 | * |
| TMBOY | 45:2aa9f933c8d2 | 10 | * Unless required by applicable law or agreed to in writing, software |
| TMBOY | 45:2aa9f933c8d2 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| TMBOY | 45:2aa9f933c8d2 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| TMBOY | 45:2aa9f933c8d2 | 13 | * See the License for the specific language governing permissions and |
| TMBOY | 45:2aa9f933c8d2 | 14 | * limitations under the License. |
| TMBOY | 45:2aa9f933c8d2 | 15 | */ |
| TMBOY | 45:2aa9f933c8d2 | 16 | package com.baidu.duer.dcs.devicemodule.alerts; |
| TMBOY | 45:2aa9f933c8d2 | 17 | |
| TMBOY | 45:2aa9f933c8d2 | 18 | /** |
| TMBOY | 45:2aa9f933c8d2 | 19 | * 定义了表示Alerts模块的namespace、name,以及其事件、指令的name |
| TMBOY | 45:2aa9f933c8d2 | 20 | * <p> |
| TMBOY | 45:2aa9f933c8d2 | 21 | * Created by wuruisheng on 2017/6/1. |
| TMBOY | 45:2aa9f933c8d2 | 22 | */ |
| TMBOY | 45:2aa9f933c8d2 | 23 | public class ApiConstants { |
| TMBOY | 45:2aa9f933c8d2 | 24 | public static final String NAMESPACE = "ai.dueros.device_interface.alerts"; |
| TMBOY | 45:2aa9f933c8d2 | 25 | public static final String NAME = "AlertsInterface"; |
| TMBOY | 45:2aa9f933c8d2 | 26 | |
| TMBOY | 45:2aa9f933c8d2 | 27 | public static final class Events { |
| TMBOY | 45:2aa9f933c8d2 | 28 | public static final class SetAlertSucceeded { |
| TMBOY | 45:2aa9f933c8d2 | 29 | public static final String NAME = SetAlertSucceeded.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 30 | } |
| TMBOY | 45:2aa9f933c8d2 | 31 | |
| TMBOY | 45:2aa9f933c8d2 | 32 | public static final class SetAlertFailed { |
| TMBOY | 45:2aa9f933c8d2 | 33 | public static final String NAME = SetAlertFailed.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 34 | } |
| TMBOY | 45:2aa9f933c8d2 | 35 | |
| TMBOY | 45:2aa9f933c8d2 | 36 | public static final class DeleteAlertSucceeded { |
| TMBOY | 45:2aa9f933c8d2 | 37 | public static final String NAME = DeleteAlertSucceeded.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 38 | } |
| TMBOY | 45:2aa9f933c8d2 | 39 | |
| TMBOY | 45:2aa9f933c8d2 | 40 | public static final class DeleteAlertFailed { |
| TMBOY | 45:2aa9f933c8d2 | 41 | public static final String NAME = DeleteAlertFailed.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 42 | } |
| TMBOY | 45:2aa9f933c8d2 | 43 | |
| TMBOY | 45:2aa9f933c8d2 | 44 | public static final class AlertStarted { |
| TMBOY | 45:2aa9f933c8d2 | 45 | public static final String NAME = AlertStarted.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 46 | } |
| TMBOY | 45:2aa9f933c8d2 | 47 | |
| TMBOY | 45:2aa9f933c8d2 | 48 | public static final class AlertStopped { |
| TMBOY | 45:2aa9f933c8d2 | 49 | public static final String NAME = AlertStopped.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 50 | } |
| TMBOY | 45:2aa9f933c8d2 | 51 | |
| TMBOY | 45:2aa9f933c8d2 | 52 | public static final class AlertsState { |
| TMBOY | 45:2aa9f933c8d2 | 53 | public static final String NAME = AlertsState.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 54 | } |
| TMBOY | 45:2aa9f933c8d2 | 55 | |
| TMBOY | 45:2aa9f933c8d2 | 56 | public static final class AlertEnteredForeground { |
| TMBOY | 45:2aa9f933c8d2 | 57 | public static final String NAME = AlertEnteredForeground.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 58 | } |
| TMBOY | 45:2aa9f933c8d2 | 59 | |
| TMBOY | 45:2aa9f933c8d2 | 60 | public static final class AlertEnteredBackground { |
| TMBOY | 45:2aa9f933c8d2 | 61 | public static final String NAME = AlertEnteredBackground.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 62 | } |
| TMBOY | 45:2aa9f933c8d2 | 63 | } |
| TMBOY | 45:2aa9f933c8d2 | 64 | |
| TMBOY | 45:2aa9f933c8d2 | 65 | public static final class Directives { |
| TMBOY | 45:2aa9f933c8d2 | 66 | public static final class SetAlert { |
| TMBOY | 45:2aa9f933c8d2 | 67 | public static final String NAME = SetAlert.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 68 | } |
| TMBOY | 45:2aa9f933c8d2 | 69 | |
| TMBOY | 45:2aa9f933c8d2 | 70 | public static final class DeleteAlert { |
| TMBOY | 45:2aa9f933c8d2 | 71 | public static final String NAME = DeleteAlert.class.getSimpleName(); |
| TMBOY | 45:2aa9f933c8d2 | 72 | } |
| TMBOY | 45:2aa9f933c8d2 | 73 | } |
| TMBOY | 45:2aa9f933c8d2 | 74 | } |
