package eu.qsfera.android.testutil

import eu.qsfera.android.data.appregistry.db.AppRegistryEntity
import eu.qsfera.android.domain.appregistry.model.AppRegistry
import eu.qsfera.android.domain.appregistry.model.AppRegistryMimeType
import eu.qsfera.android.lib.resources.appregistry.responses.AppRegistryMimeTypeResponse
import eu.qsfera.android.lib.resources.appregistry.responses.AppRegistryResponse

val OC_APP_REGISTRY_MIMETYPE = AppRegistryMimeType(
    mimeType = "DIR",
    ext = "appRegistryMimeTypes.ext",
    appProviders = emptyList(),
    name = "appRegistryMimeTypes.name",
    icon = "appRegistryMimeTypes.icon",
    description = "appRegistryMimeTypes.description",
    allowCreation = true,
    defaultApplication = "appRegistryMimeTypes.defaultApplication",
)

val OC_APP_REGISTRY_ENTITY = AppRegistryEntity(
    accountName = OC_ACCOUNT_NAME,
    mimeType = "DIR",
    ext = "appRegistryMimeTypes.ext",
    appProviders = "[]",
    name = "appRegistryMimeTypes.name",
    icon = "appRegistryMimeTypes.icon",
    description = "appRegistryMimeTypes.description",
    allowCreation = true,
    defaultApplication = "appRegistryMimeTypes.defaultApplication",
)

val OC_APP_REGISTRY = AppRegistry(
    accountName = OC_ACCOUNT_NAME,
    mimetypes = listOf(OC_APP_REGISTRY_MIMETYPE)
)

val OC_APP_REGISTRY_RESPONSE = AppRegistryResponse(
    value = listOf(
        AppRegistryMimeTypeResponse(
            mimeType = "DIR",
            ext = "appRegistryMimeTypes.ext",
            appProviders = emptyList(),
            name = "appRegistryMimeTypes.name",
            icon = "appRegistryMimeTypes.icon",
            description = "appRegistryMimeTypes.description",
            allowCreation = true,
            defaultApplication = "appRegistryMimeTypes.defaultApplication",
        )
    )
)
