1 /* 2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef OHOS_DMS_CONSTANT_H 17 #define OHOS_DMS_CONSTANT_H 18 19 namespace OHOS { 20 namespace DistributedSchedule { 21 namespace Constants { 22 constexpr int32_t OH_OS_TYPE = 10; 23 constexpr int32_t HO_OS_TYPE = 11; 24 constexpr int32_t HO_OS_TYPE_EX = -1; 25 26 constexpr const char* PARAM_KEY_OS_TYPE = "OS_TYPE"; 27 constexpr const char* PARAM_KEY_OS_VERSION = "OS_VERSION"; 28 constexpr const char* DMS_NAME = "dmsfwk"; 29 constexpr const char* DMS_VERSION = "5.0.0"; 30 constexpr const char* DMS_SERVICE_ID = "dmsfwk_svr_id"; 31 constexpr const char* DMS_CHAR_ID = "static_capability"; 32 constexpr const char* PACKAGE_NAMES = "packageNames"; 33 constexpr const char* VERSIONS = "versions"; 34 constexpr const char* DMS_SERVICE_TYPE = "appInfo"; 35 36 const std::string EXTRO_INFO_JSON_KEY_ACCOUNT_ID = "accountId"; 37 const std::string EXTRO_INFO_JSON_KEY_USERID_ID = "userId"; 38 const std::string EXTRO_INFO_JSON_KEY_CALLER_INFO_EX = "callerInfo_ExtraInfoJson"; 39 } // Constants 40 } // DistributedSchedule 41 } // OHOS 42 #endif // OHOS_DMS_CONSTANT_H 43