Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5efc0f27 authored by Jonathan Klee's avatar Jonathan Klee
Browse files

refactor(application): add domain application type

parent 0f6e7670
Loading
Loading
Loading
Loading
+72 −0
Original line number Diff line number Diff line
/*
 * Copyright (C) 2026 e Foundation
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 *
 */

package foundation.e.apps.domain.application

import foundation.e.apps.domain.application.model.AppRestriction
import foundation.e.apps.domain.application.model.ContentRating
import foundation.e.apps.domain.application.model.Ratings
import foundation.e.apps.domain.enums.FilterLevel
import foundation.e.apps.domain.enums.Source
import foundation.e.apps.domain.enums.Status
import foundation.e.apps.domain.enums.Type

data class ApplicationDomain(
    val id: String = String(),
    val author: String = String(),
    val category: String = String(),
    val description: String = String(),
    val perms: List<String> = emptyList(),
    val reportId: Long = -1L,
    val packageName: String = String(),
    val name: String = String(),
    val iconImagePath: String = String(),
    val iconUrl: String? = null,
    val otherImagesPath: List<String> = emptyList(),
    val lastModified: String = String(),
    val latestVersionCode: Long = -1,
    val latestVersionNumber: String = String(),
    val latestDownloadedVersion: String = String(),
    val licence: String = String(),
    val source: Source = Source.PLAY_STORE,
    val status: Status = Status.UNAVAILABLE,
    val ratings: Ratings = Ratings(),
    val offerType: Int = -1,
    val isFree: Boolean = true,
    val price: String = String(),
    val isPwa: Boolean = false,
    val url: String = String(),
    val pwaPlayerDbId: Long = -1L,
    val type: Type = Type.NATIVE,
    val originalSize: Long = 0,
    val appSize: String = String(),
    val shareUrl: String = String(),
    val privacyScore: Int = -1,
    val isPurchased: Boolean = false,
    val updatedOn: String = String(),
    val numberOfPermission: Int = 0,
    val numberOfTracker: Int = 0,
    val contentRating: ContentRating = ContentRating(),
    val restriction: AppRestriction = AppRestriction.NOT_RESTRICTED,
    val filterLevel: FilterLevel = FilterLevel.UNKNOWN,
    val isGplayReplaced: Boolean = false,
    val isFDroidApp: Boolean = false,
    val antiFeatures: List<Map<String, String>> = emptyList(),
    val isPlaceHolder: Boolean = false,
    val isSystemApp: Boolean = false,
)