Android: Convert HomeScreenChannel to Kotlin

This commit is contained in:
Charles Lombardo 2023-06-10 14:19:41 -04:00
parent 09c2c6541d
commit ed9467dc1b
2 changed files with 12 additions and 63 deletions

View File

@ -1,63 +0,0 @@
// SPDX-License-Identifier: GPL-2.0-or-later
package org.dolphinemu.dolphinemu.model;
import android.net.Uri;
/**
* Represents a home screen channel for Android TV api 26+
*/
public class HomeScreenChannel
{
private long channelId;
private String name;
private String description;
private Uri appLinkIntentUri;
public HomeScreenChannel(String name, String description, Uri appLinkIntentUri)
{
this.name = name;
this.description = description;
this.appLinkIntentUri = appLinkIntentUri;
}
public long getChannelId()
{
return channelId;
}
public void setChannelId(long channelId)
{
this.channelId = channelId;
}
public String getName()
{
return name;
}
public void setName(String name)
{
this.name = name;
}
public String getDescription()
{
return description;
}
public void setDescription(String description)
{
this.description = description;
}
public Uri getAppLinkIntentUri()
{
return appLinkIntentUri;
}
public void setAppLinkIntentUri(Uri appLinkIntentUri)
{
this.appLinkIntentUri = appLinkIntentUri;
}
}

View File

@ -0,0 +1,12 @@
// SPDX-License-Identifier: GPL-2.0-or-later
package org.dolphinemu.dolphinemu.model
import android.net.Uri
/**
* Represents a home screen channel for Android TV api 26+
*/
class HomeScreenChannel(var name: String, var description: String, var appLinkIntentUri: Uri) {
var channelId: Long = 0
}