Newer
Older
GitBucket / src / main / scala / gitbucket / core / api / ApiPlugin.scala
@Naoki Takezoe Naoki Takezoe on 1 Apr 2018 396 bytes Apply scalafmt
package gitbucket.core.api

import gitbucket.core.plugin.{PluginRegistry, PluginInfo}

case class ApiPlugin(
  id: String,
  name: String,
  version: String,
  description: String,
  jarFileName: String
)

object ApiPlugin {
  def apply(plugin: PluginInfo): ApiPlugin = {
    ApiPlugin(plugin.pluginId, plugin.pluginName, plugin.pluginVersion, plugin.description, plugin.pluginJar.getName)
  }
}