1 /* 2 * Copyright (c) 2023 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 DATA_PROPERTIES_H 17 #define DATA_PROPERTIES_H 18 19 #include "serializable.h" 20 namespace OHOS::RdbBMSAdapter { 21 struct API_EXPORT DataProperties : public Serializable { 22 virtual ~DataProperties() = default; 23 bool Marshal(json &node) const override; 24 bool Unmarshal(const json &node) override; 25 static const std::string MODULE_SCOPE; 26 static const std::string APPLICATION_SCOPE; 27 static const std::string RDB_TYPE; 28 static const std::string PUBLISHED_DATA_TYPE; 29 std::string storeName; 30 std::string tableName; 31 std::string scope = MODULE_SCOPE; 32 std::string type = RDB_TYPE; 33 }; 34 } // namespace OHOS::DataShare 35 #endif //DATA_PROPERTIES_H 36