package com.rosetta.messenger.network

class PacketCreateGroup : Packet() {
    var groupId: String = ""

    override fun getPacketId(): Int = 0x11

    override fun receive(stream: Stream) {
        groupId = stream.readString()
    }

    override fun send(): Stream {
        val stream = Stream()
        stream.writeInt16(getPacketId())
        stream.writeString(groupId)
        return stream
    }
}
