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 package ohos; 16 17 import java.util.ArrayList; 18 import java.util.List; 19 20 /** 21 * collection of HQF verify info. 22 */ 23 public class HQFInfo { 24 private String bundleName = ""; 25 26 private int versionCode = -1; 27 28 private String versionName = ""; 29 30 private int patchVersionCode = -1; 31 32 private String patchVersionName = ""; 33 34 private String moduleName = ""; 35 36 private String type = ""; 37 38 private List<String> deviceTypes = new ArrayList<>(); 39 40 private String originalModuleHash = ""; 41 getBundleName()42 public String getBundleName() { 43 return bundleName; 44 } 45 setBundleName(String bundleName)46 public void setBundleName(String bundleName) { 47 this.bundleName = bundleName; 48 } 49 getVersionCode()50 public int getVersionCode() { 51 return versionCode; 52 } 53 setVersionCode(int versionCode)54 public void setVersionCode(int versionCode) { 55 this.versionCode = versionCode; 56 } 57 getVersionName()58 public String getVersionName() { 59 return versionName; 60 } 61 setVersionName(String versionName)62 public void setVersionName(String versionName) { 63 this.versionName = versionName; 64 } 65 getPatchVersionCode()66 public int getPatchVersionCode() { 67 return patchVersionCode; 68 } 69 setPatchVersionCode(int patchVersionCode)70 public void setPatchVersionCode(int patchVersionCode) { 71 this.patchVersionCode = patchVersionCode; 72 } 73 getPatchVersionName()74 public String getPatchVersionName() { 75 return patchVersionName; 76 } 77 setPatchVersionName(String patchVersionName)78 public void setPatchVersionName(String patchVersionName) { 79 this.patchVersionName = patchVersionName; 80 } 81 getModuleName()82 public String getModuleName() { 83 return moduleName; 84 } 85 setModuleName(String moduleName)86 public void setModuleName(String moduleName) { 87 this.moduleName = moduleName; 88 } 89 getType()90 public String getType() { 91 return type; 92 } 93 setType(String type)94 public void setType(String type) { 95 this.type = type; 96 } 97 getDeviceTypes()98 public List<String> getDeviceTypes() { 99 return deviceTypes; 100 } 101 setDeviceTypes(List<String> deviceTypes)102 public void setDeviceTypes(List<String> deviceTypes) { 103 this.deviceTypes = deviceTypes; 104 } 105 getOriginalModuleHash()106 public String getOriginalModuleHash() { 107 return originalModuleHash; 108 } 109 setOriginalModuleHash(String originalModuleHash)110 public void setOriginalModuleHash(String originalModuleHash) { 111 this.originalModuleHash = originalModuleHash; 112 } 113 } 114