var ExtComm = window.ExtComm

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

var ExtComm = ExtComm || {};


ExtComm.ResCode = 
{
    success : 0,
    paramError : 1,
    fail : 2,
    unkown : 3,
    loginError : 4,
    authorizeError : 5,
    objNotFound : 6,
    objAlreadyExist : 7,
    limitUpload : 8
};

ExtComm.ExtCommonRequest = function()
{
    this.componentTag = "";
};
ExtComm.ExtCommonRequest.prototype._clone = function () { return new ExtComm.ExtCommonRequest(); }
ExtComm.ExtCommonRequest.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
ExtComm.ExtCommonRequest.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

ExtComm.ExtCommonRequest.prototype.writeTo = function (os)
{
    os.writeString(0, this.componentTag);
};

ExtComm.ExtCommonRequest.prototype.readFrom = function (is)
{
    this.componentTag= is.readString(0, false, this.componentTag);
};

ExtComm.ExtCommonResponse = function()
{
    this.res = 0;
    this.msg = "";
};
ExtComm.ExtCommonResponse.prototype._clone = function () { return new ExtComm.ExtCommonResponse(); }
ExtComm.ExtCommonResponse.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
ExtComm.ExtCommonResponse.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

ExtComm.ExtCommonResponse.prototype.writeTo = function (os)
{
    os.writeInt32(0, this.res);
    os.writeString(1, this.msg);
};

ExtComm.ExtCommonResponse.prototype.readFrom = function (is)
{
    this.res= is.readInt32(0, false, this.res);
    this.msg= is.readString(1, false, this.msg);
};

window.ExtComm = ExtComm
