All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.com.saveourtool.save.entities.GitDto.kt Maven / Gradle / Ivy

The newest version!
package com.saveourtool.save.entities

import com.saveourtool.save.validation.Validatable
import com.saveourtool.save.validation.isValidUrl
import kotlinx.serialization.Serializable

/**
 * @property url
 * @property username
 * @property password
 */
@Serializable
data class GitDto(
    val url: String,
    val username: String? = null,
    val password: String? = null,
) : Validatable {
    override fun validate(): Boolean = url.isValidUrl()
    companion object {
        val empty = GitDto("")
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy