1 /* 2 * Copyright (c) 2021 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 import java.util.HashMap; 19 20 /** 21 * ReqPermission info. 22 * 23 */ 24 public class ReqPermission { 25 /** 26 * Indicates the name of ReqPermission. 27 */ 28 public String name = ""; 29 30 /** 31 * Indicates the reason of ReqPermission. 32 */ 33 public String reason = ""; 34 35 /** 36 * Indicates the usedScene of ReqPermission. 37 */ 38 public UsedScene usedScene = null; 39 40 /** 41 * Indicates the reasons of ReqPermission, for Multilingual. 42 */ 43 private HashMap<String, String> reasons = new HashMap<>(); 44 setReasons(HashMap<String, String> reasons)45 public void setReasons(HashMap<String, String> reasons) { 46 this.reasons = reasons; 47 } 48 getReasons()49 public HashMap<String, String> getReasons() { 50 return reasons; 51 } 52 }