FileV1

@Serializable
data class FileV1(val name: String, val sha256: String, val size: Long? = null, val ipfsCidV1: String? = null) : IndexFile

Like FileV2 with the only difference that the sha256 hash can not be null. Even in index-v1 this must exist, so we can use it as a primary key in the DB.

Constructors

Link copied to clipboard
constructor(name: String, sha256: String, size: Long? = null, ipfsCidV1: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
@SerialName(value = "ipfsCIDv1")
open override val ipfsCidV1: String?
Link copied to clipboard
open override val name: String
Link copied to clipboard
open override val sha256: String
Link copied to clipboard
open override val size: Long?

Functions

Link copied to clipboard
open override fun serialize(): String