Last active
December 16, 2015 22:59
-
-
Save volgar1x/5511054 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 05/03/2013 17:14:40 | |
// Scala version by Blackrush | |
package org.mambo.protocol.messages | |
import org.mambo.core.io._ | |
import org.mambo.protocol.{Message => BaseMessage, _} | |
import org.mambo.protocol.types._ | |
import org.mambo.protocol.enums._ | |
trait AdminQuietCommandMessage extends AdminCommandMessage { | |
override val messageId = 5662 | |
trait Message extends AdminCommandMessage.Message with Serializable { | |
override val messageId = AdminQuietCommandMessage.messageId | |
override def serialize(buf: Buffer) { | |
super.serialize(buf) | |
} | |
} | |
override def create(content: String): Message = ??? | |
override def deserialize(buf: Buffer): Message = { | |
val content = buf.readString() | |
create(content) | |
} | |
} | |
object AdminQuietCommandMessage extends AdminQuietCommandMessage { | |
case class MessageImpl(content: String) extends Message | |
override def create(content: String) = MessageImpl(content) | |
def apply(content: String) = create(content) | |
def unapply(msg: MessageImpl) = MessageImpl.unapply(msg) | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Generated on 05/03/2013 17:14:40 | |
// Scala version by Blackrush | |
package org.mambo.protocol.messages | |
import org.mambo.core.io._ | |
import org.mambo.protocol.{Message => BaseMessage, _} | |
import org.mambo.protocol.types._ | |
import org.mambo.protocol.enums._ | |
trait AdminCommandMessage extends MessageDeserializer { | |
val messageId = 76 | |
trait Message extends BaseMessage with Serializable { | |
val messageId = AdminCommandMessage.messageId | |
val content: String | |
def serialize(buf: Buffer) { | |
buf.writeString(content) | |
} | |
} | |
def create(content: String): Message = ??? | |
def deserialize(buf: Buffer): Message = { | |
val content = buf.readString() | |
create(content) | |
} | |
} | |
object AdminCommandMessage extends AdminCommandMessage { | |
case class MessageImpl(content: String) extends Message | |
override def create(content: String) = MessageImpl(content) | |
def apply(content: String) = create(content) | |
def unapply(msg: MessageImpl) = MessageImpl.unapply(msg) | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment