2020-10-04 02:26:09 +02:00
|
|
|
package org.schabi.newpipe.about
|
|
|
|
|
|
|
|
import android.net.Uri
|
|
|
|
import android.os.Parcelable
|
|
|
|
import kotlinx.android.parcel.Parcelize
|
2020-11-04 18:07:40 +01:00
|
|
|
import java.io.Serializable
|
2020-10-04 02:26:09 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Class for storing information about a software license.
|
|
|
|
*/
|
|
|
|
@Parcelize
|
|
|
|
class License(val name: String, val abbreviation: String, val filename: String) : Parcelable, Serializable {
|
|
|
|
val contentUri: Uri
|
|
|
|
get() = Uri.Builder()
|
2020-11-04 18:07:40 +01:00
|
|
|
.scheme("file")
|
|
|
|
.path("/android_asset")
|
|
|
|
.appendPath(filename)
|
|
|
|
.build()
|
2020-10-04 02:26:09 +02:00
|
|
|
}
|