yakworks.message.DefaultMsgMultiKey.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-messages Show documentation
Show all versions of api-messages Show documentation
Models and SPI for message service, api results and problems.
package yakworks.message
/**
* Default implementation of the MsgKey, normally would be build with the static helpers
* Msg.key('somekey',....), not directly with this class
*
* @author Joshua Burnett (@basejump)
* @since 0.3.0
*/
class DefaultMsgMultiKey : MsgMultiKey {
override var codes: List? = null
override var msgKey: MsgKey? = null
constructor() {}
constructor(codes: List?) {
this.codes = codes
msgKey = DefaultMsgKey()
}
constructor(msg: MsgKey?) {
msgKey = msg
}
fun codes(v: List?): DefaultMsgMultiKey {
codes = v
return this
}
fun msgKey(v: MsgKey?): DefaultMsgMultiKey {
msgKey = v
return this
}
}