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

com.baulsupp.oksocial.output.OutputHandler.kt Maven / Gradle / Ivy

The newest version!
package com.baulsupp.oksocial.output

interface OutputHandler {
  suspend fun showOutput(response: R)

  suspend fun showError(message: String? = null, e: Throwable? = null) {
    if (message != null) {
      System.err.println(message)
    }
    e?.printStackTrace()
  }

  suspend fun openLink(url: String) {
    System.err.println(url)
  }

  fun info(message: String) {
    println(message)
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy