1 /* 2 * Copyright (c) 2022-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 package ohos; 17 18 /** 19 * Collection of members in ModuleApiVersion. 20 */ 21 class ModuleApiVersion { 22 /** 23 * Indicates the compatibleApiVersion of app. 24 */ 25 private int compatibleApiVersion = -1; 26 27 /** 28 * Indicates the compatibleApiVersion of app. 29 */ 30 private int targetApiVersion = -1; 31 32 /** 33 * Indicates the releaseType of app. 34 */ 35 private String releaseType = ""; 36 getReleaseType()37 public String getReleaseType() { 38 return releaseType; 39 } 40 setReleaseType(String releaseType)41 public void setReleaseType(String releaseType) { 42 this.releaseType = releaseType; 43 } 44 getCompatibleApiVersion()45 public int getCompatibleApiVersion() { 46 return compatibleApiVersion; 47 } 48 setCompatibleApiVersion(int compatibleApiVersion)49 public void setCompatibleApiVersion(int compatibleApiVersion) { 50 this.compatibleApiVersion = compatibleApiVersion; 51 } 52 getTargetApiVersion()53 public int getTargetApiVersion() { 54 return targetApiVersion; 55 } 56 setTargetApiVersion(int targetApiVersion)57 public void setTargetApiVersion(int targetApiVersion) { 58 this.targetApiVersion = targetApiVersion; 59 } 60 } 61