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

com.mle.play.json.JsonMessages.scala Maven / Gradle / Ivy

package com.mle.play.json

import play.api.libs.json.Json
import Json._
import JsonStrings._


/**
 *
 * @author mle
 */
trait JsonMessages {
  def failure(reason: String) = obj(REASON -> reason)

  val welcome = obj(EVENT -> WELCOME)
  val unauthorized = failure(ACCESS_DENIED)
}

object JsonMessages extends JsonMessages




© 2015 - 2025 Weber Informatics LLC | Privacy Policy