mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Android: Convert HomeScreenChannel to Kotlin
This commit is contained in:
parent
09c2c6541d
commit
ed9467dc1b
@ -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;
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
Loading…
Reference in New Issue
Block a user