1 /* 2 * Copyright (C) 2022 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 */ 17 18 package com.android.systemui.user.shared.model 19 20 import android.graphics.drawable.Drawable 21 import com.android.systemui.common.shared.model.Text 22 23 /** Represents a single user on the device. */ 24 data class UserModel( 25 /** ID of the user, unique across all users on this device. */ 26 val id: Int, 27 /** Human-facing name for this user. */ 28 val name: Text, 29 /** Human-facing image for this user. */ 30 val image: Drawable, 31 /** Whether this user is the currently-selected user. */ 32 val isSelected: Boolean, 33 /** Whether this use is selectable. A non-selectable user cannot be switched to. */ 34 val isSelectable: Boolean, 35 /** Whether this model represents the guest user. */ 36 val isGuest: Boolean, 37 ) 38