1 /*
2  * Copyright (C) 2019 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 package com.google.android.car.kitchensink.users;
17 
18 /**
19  * Represents a user restriction in a list.  Contains the key for the user restriction and the
20  * "checked" status of the checkbox in the list.
21  */
22 public class UserRestrictionListItem {
23     private final String mKey;
24     private boolean mIsChecked;
25 
UserRestrictionListItem(String key, boolean isChecked)26     public UserRestrictionListItem(String key, boolean isChecked) {
27         mKey = key;
28         mIsChecked = isChecked;
29     }
30 
getKey()31     public String getKey() {
32         return mKey;
33     }
34 
setIsChecked(boolean value)35     public void setIsChecked(boolean value) {
36         mIsChecked = value;
37     }
38 
getIsChecked()39     public boolean getIsChecked() {
40         return mIsChecked;
41     }
42 }
43