summaryrefslogtreecommitdiffstats
path: root/src/android/app/src/main/java/org/yuzu/yuzu_emu/features/settings/model/view/DateTimeSetting.kt
blob: 1d81f5f2b4dabee294e8daebb31d3e1e0c610714 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-FileCopyrightText: 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

package org.yuzu.yuzu_emu.features.settings.model.view

import org.yuzu.yuzu_emu.features.settings.model.AbstractLongSetting

class DateTimeSetting(
    private val longSetting: AbstractLongSetting,
    titleId: Int,
    descriptionId: Int
) : SettingsItem(longSetting, titleId, descriptionId) {
    override val type = TYPE_DATETIME_SETTING

    fun getValue(needsGlobal: Boolean = false): Long = longSetting.getLong(needsGlobal)
    fun setValue(value: Long) = (setting as AbstractLongSetting).setLong(value)
}