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 package ohos; 17 18 import java.util.ArrayList; 19 import java.util.HashMap; 20 import java.util.List; 21 22 /** 23 * module Shortcut info. 24 * 25 */ 26 class ModuleShortcut { 27 /** 28 * Indicates the shortcutId of module Shortcut. 29 */ 30 private String shortcutId = ""; 31 32 /** 33 * Indicates the label of module Shortcut. 34 */ 35 private String label = ""; 36 37 private HashMap<String, String> labels = new HashMap<>(); 38 39 /** 40 * Indicates the icon of module Shortcut. 41 */ 42 private String icon = ""; 43 44 /** 45 * Indicates the intents of module Shortcut. 46 */ 47 private List<Want> wants = new ArrayList<Want>(); 48 getShortcutId()49 public String getShortcutId() { 50 return shortcutId; 51 } 52 setShortcutId(String shortcutId)53 public void setShortcutId(String shortcutId) { 54 this.shortcutId = shortcutId; 55 } 56 getLabel()57 public String getLabel() { 58 return label; 59 } 60 setLabel(String label)61 public void setLabel(String label) { 62 this.label = label; 63 } 64 getLabels()65 public HashMap<String, String> getLabels() { 66 return labels; 67 } 68 setLabels(HashMap<String, String> labels)69 public void setLabels(HashMap<String, String> labels) { 70 this.labels = labels; 71 } 72 getIcon()73 public String getIcon() { 74 return icon; 75 } 76 setIcon(String icon)77 public void setIcon(String icon) { 78 this.icon = icon; 79 } 80 getWants()81 public List<Want> getWants() { 82 return wants; 83 } 84 setWants(List<Want> wants)85 public void setWants(List<Want> wants) { 86 this.wants = wants; 87 } 88 } 89