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

org.danilopianini.plagiarismdetector.utils.HostingService.kt Maven / Gradle / Ivy

There is a newer version: 9.0.6
Show newest version
package org.danilopianini.plagiarismdetector.utils

/**
 * An interface modeling a hosting service.
 */
sealed interface HostingService {

    /**
     * The name of the hosting service.
     */
    val name: String

    /**
     * The hostname of the hosting service.
     */
    val host: String
}

/**
 * GitHub hosting service.
 */
object GitHub : HostingService {
    override val name: String = "github"
    override val host: String = "$name.com"
}

/**
 * Bitbucket hosting service.
 */
object BitBucket : HostingService {
    override val name: String = "bitbucket"
    override val host: String = "$name.org"
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy