FileV1

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

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
open val ipfsCidV1: String? = null
Link copied to clipboard
open val name: String
Link copied to clipboard
open val sha256: String
Link copied to clipboard
open val size: Long? = null

Functions

Link copied to clipboard
open fun serialize(): String