Android: Convert RiivolutionItem to Kotlin

This commit is contained in:
Charles Lombardo 2023-03-01 14:38:37 -05:00
parent e37503675a
commit 79d0ff55d2
2 changed files with 36 additions and 40 deletions

View File

@ -1,40 +0,0 @@
// SPDX-License-Identifier: GPL-2.0-or-later
package org.dolphinemu.dolphinemu.features.riivolution.ui;
public class RiivolutionItem
{
public final int mDiscIndex;
public final int mSectionIndex;
public final int mOptionIndex;
/**
* Constructor for a disc.
*/
public RiivolutionItem(int discIndex)
{
mDiscIndex = discIndex;
mSectionIndex = -1;
mOptionIndex = -1;
}
/**
* Constructor for a section.
*/
public RiivolutionItem(int discIndex, int sectionIndex)
{
mDiscIndex = discIndex;
mSectionIndex = sectionIndex;
mOptionIndex = -1;
}
/**
* Constructor for an option.
*/
public RiivolutionItem(int discIndex, int sectionIndex, int optionIndex)
{
mDiscIndex = discIndex;
mSectionIndex = sectionIndex;
mOptionIndex = optionIndex;
}
}

View File

@ -0,0 +1,36 @@
// SPDX-License-Identifier: GPL-2.0-or-later
package org.dolphinemu.dolphinemu.features.riivolution.ui
class RiivolutionItem {
val mDiscIndex: Int
val mSectionIndex: Int
val mOptionIndex: Int
/**
* Constructor for a disc.
*/
constructor(discIndex: Int) {
mDiscIndex = discIndex
mSectionIndex = -1
mOptionIndex = -1
}
/**
* Constructor for a section.
*/
constructor(discIndex: Int, sectionIndex: Int) {
mDiscIndex = discIndex
mSectionIndex = sectionIndex
mOptionIndex = -1
}
/**
* Constructor for an option.
*/
constructor(discIndex: Int, sectionIndex: Int, optionIndex: Int) {
mDiscIndex = discIndex
mSectionIndex = sectionIndex
mOptionIndex = optionIndex
}
}