1/* 2 * Copyright (c) 2022 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/** 17 * Contains resource descriptor information. 18 * 19 * @interface Resource 20 * @syscap SystemCapability.Global.ResourceManager 21 * @since 9 22 */ 23export interface Resource { 24 /** 25 * bundle name in hap 26 * 27 * @type { string } 28 * @syscap SystemCapability.Global.ResourceManager 29 * @since 9 30 */ 31 bundleName: string; 32 33 /** 34 * module name in hap 35 * 36 * @type { string } 37 * @syscap SystemCapability.Global.ResourceManager 38 * @since 9 39 */ 40 moduleName: string; 41 42 /** 43 * resource id in hap 44 * 45 * @type { number } 46 * @syscap SystemCapability.Global.ResourceManager 47 * @since 9 48 */ 49 id: number; 50 51 /** 52 * Set params. 53 * 54 * @type { ?any[] } 55 * @syscap SystemCapability.Global.ResourceManager 56 * @since 7 57 */ 58 params?: any[]; 59 60 /** 61 * Set type. 62 * 63 * @type { ?number } 64 * @syscap SystemCapability.Global.ResourceManager 65 * @since 7 66 */ 67 type?: number; 68} 69