var DEV = window.DEV

// **********************************************************************
// This file was generated by a TAF parser!
// TAF version 2.1.6.5
// Generated from `DevMessageServant.jce'
// **********************************************************************

var DEV = DEV || {};


DEV.MessageHeader = function () {
    this.messId = "";
    this.messType = "";
    this.extUuid = "";
    this.roomId = 0;
    this.pushTime = 0;
};
DEV.MessageHeader.prototype._clone = function () { return new DEV.MessageHeader(); }
DEV.MessageHeader.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
DEV.MessageHeader.prototype._read = function (is, tag, def) { return is.readStruct(tag, true, def); }

DEV.MessageHeader.prototype.writeTo = function (os) {
    os.writeString(0, this.messId);
    os.writeString(1, this.messType);
    os.writeString(2, this.extUuid);
    os.writeInt32(3, this.roomId);
    os.writeInt32(4, this.pushTime);
};

DEV.MessageHeader.prototype.readFrom = function (is) {
    this.messId = is.readString(0, false, this.messId);
    this.messType = is.readString(1, false, this.messType);
    this.extUuid = is.readString(2, false, this.extUuid);
    this.roomId = is.readInt32(3, false, this.roomId);
    this.pushTime = is.readInt32(4, false, this.pushTime);
};

DEV.MessageBody = function () {
    this.event = "";
    this.content = "";
};
DEV.MessageBody.prototype._clone = function () { return new DEV.MessageBody(); }
DEV.MessageBody.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
DEV.MessageBody.prototype._read = function (is, tag, def) { return is.readStruct(tag, true, def); }

DEV.MessageBody.prototype.writeTo = function (os) {
    os.writeString(0, this.event);
    os.writeString(1, this.content);
};

DEV.MessageBody.prototype.readFrom = function (is) {
    this.event = is.readString(0, false, this.event);
    this.content = is.readString(1, false, this.content);
};

DEV.Message = function () {
    this.header = new DEV.MessageHeader();
    this.body = new DEV.MessageBody();
};
DEV.Message.prototype._clone = function () { return new DEV.Message(); }
DEV.Message.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
DEV.Message.prototype._read = function (is, tag, def) { return is.readStruct(tag, true, def); }

DEV.Message.prototype.writeTo = function (os) {
    os.writeStruct(0, this.header);
    os.writeStruct(1, this.body);
};

DEV.Message.prototype.readFrom = function (is) {
    this.header = is.readStruct(0, false, this.header);
    this.body = is.readStruct(1, false, this.body);
};

window.DEV = DEV
