var HUYA = window.HUYA

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

var HUYA = HUYA || {};


HUYA.EbsRequest = function()
{
    this.header = new Taf.Map(new Taf.STRING(), new Taf.STRING());
    this.host = "";
    this.port = 0;
    this.path = "";
    this.httpMethod = "";
    this.param = new Taf.Map(new Taf.STRING(), new Taf.STRING());
    this.cookies = new Taf.Map(new Taf.STRING(), new Taf.STRING());
};
HUYA.EbsRequest.prototype._clone = function () { return new HUYA.EbsRequest(); }
HUYA.EbsRequest.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
HUYA.EbsRequest.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

HUYA.EbsRequest.prototype.writeTo = function (os)
{
    os.writeMap(0, this.header);
    os.writeString(1, this.host);
    os.writeInt32(2, this.port);
    os.writeString(3, this.path);
    os.writeString(4, this.httpMethod);
    os.writeMap(5, this.param);
    os.writeMap(6, this.cookies);
};

HUYA.EbsRequest.prototype.readFrom = function (is)
{
    this.header= is.readMap(0, false, this.header);
    this.host= is.readString(1, false, this.host);
    this.port= is.readInt32(2, false, this.port);
    this.path= is.readString(3, false, this.path);
    this.httpMethod= is.readString(4, false, this.httpMethod);
    this.param= is.readMap(5, false, this.param);
    this.cookies= is.readMap(6, false, this.cookies);
};

HUYA.EbsResponse = function()
{
    this.header = new Taf.Map(new Taf.STRING(), new Taf.STRING());
    this.statusCode = "";
    this.entity = "";
};
HUYA.EbsResponse.prototype._clone = function () { return new HUYA.EbsResponse(); }
HUYA.EbsResponse.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
HUYA.EbsResponse.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

HUYA.EbsResponse.prototype.writeTo = function (os)
{
    os.writeMap(0, this.header);
    os.writeString(1, this.statusCode);
    os.writeString(2, this.entity);
};

HUYA.EbsResponse.prototype.readFrom = function (is)
{
    this.header= is.readMap(0, false, this.header);
    this.statusCode= is.readString(1, false, this.statusCode);
    this.entity= is.readString(2, false, this.entity);
};

HUYA.RouteEBSReq = function()
{
    this.tId = new HUYA.UserId();
    this.appId = "";
    this.extUuid = "";
    this.extVersion = "";
    this.uid = 0;
    this.jwt = "";
    this.ebsRequest = new HUYA.EbsRequest();
};
HUYA.RouteEBSReq.prototype._clone = function () { return new HUYA.RouteEBSReq(); }
HUYA.RouteEBSReq.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
HUYA.RouteEBSReq.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

HUYA.RouteEBSReq.prototype.writeTo = function (os)
{
    os.writeStruct(0, this.tId);
    os.writeString(1, this.appId);
    os.writeString(2, this.extUuid);
    os.writeString(3, this.extVersion);
    os.writeInt64(4, this.uid);
    os.writeString(5, this.jwt);
    os.writeStruct(6, this.ebsRequest);
};

HUYA.RouteEBSReq.prototype.readFrom = function (is)
{
    this.tId= is.readStruct(0, false, this.tId);
    this.appId= is.readString(1, false, this.appId);
    this.extUuid= is.readString(2, false, this.extUuid);
    this.extVersion= is.readString(3, false, this.extVersion);
    this.uid= is.readInt64(4, false, this.uid);
    this.jwt= is.readString(5, false, this.jwt);
    this.ebsRequest= is.readStruct(6, false, this.ebsRequest);
};

HUYA.RouteEBSResp = function()
{
    this.response = new ExtComm.ExtCommonResponse();
    this.ebsResponse = new HUYA.EbsResponse();
};
HUYA.RouteEBSResp.prototype._clone = function () { return new HUYA.RouteEBSResp(); }
HUYA.RouteEBSResp.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
HUYA.RouteEBSResp.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

HUYA.RouteEBSResp.prototype.writeTo = function (os)
{
    os.writeStruct(0, this.response);
    os.writeStruct(1, this.ebsResponse);
};

HUYA.RouteEBSResp.prototype.readFrom = function (is)
{
    this.response= is.readStruct(0, false, this.response);
    this.ebsResponse= is.readStruct(1, false, this.ebsResponse);
};

HUYA.EbsRequestV2 = function()
{
    this.header = new Taf.Map(new Taf.STRING(), new Taf.STRING());
    this.url = "";
    this.httpMethod = "";
    this.bodyString = "";
};
HUYA.EbsRequestV2.prototype._clone = function () { return new HUYA.EbsRequestV2(); }
HUYA.EbsRequestV2.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
HUYA.EbsRequestV2.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

HUYA.EbsRequestV2.prototype.writeTo = function (os)
{
    os.writeMap(0, this.header);
    os.writeString(1, this.url);
    os.writeString(2, this.httpMethod);
    os.writeString(3, this.bodyString);
};

HUYA.EbsRequestV2.prototype.readFrom = function (is)
{
    this.header= is.readMap(0, false, this.header);
    this.url= is.readString(1, false, this.url);
    this.httpMethod= is.readString(2, false, this.httpMethod);
    this.bodyString= is.readString(3, false, this.bodyString);
};

HUYA.RouteEBSV2Req = function()
{
    this.tId = new HUYA.UserId();
    this.appId = "";
    this.extUuid = "";
    this.extVersion = "";
    this.uid = 0;
    this.jwt = "";
    this.ebsRequest = new HUYA.EbsRequestV2();
};
HUYA.RouteEBSV2Req.prototype._clone = function () { return new HUYA.RouteEBSV2Req(); }
HUYA.RouteEBSV2Req.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
HUYA.RouteEBSV2Req.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

HUYA.RouteEBSV2Req.prototype.writeTo = function (os)
{
    os.writeStruct(0, this.tId);
    os.writeString(1, this.appId);
    os.writeString(2, this.extUuid);
    os.writeString(3, this.extVersion);
    os.writeInt64(4, this.uid);
    os.writeString(5, this.jwt);
    os.writeStruct(6, this.ebsRequest);
};

HUYA.RouteEBSV2Req.prototype.readFrom = function (is)
{
    this.tId= is.readStruct(0, false, this.tId);
    this.appId= is.readString(1, false, this.appId);
    this.extUuid= is.readString(2, false, this.extUuid);
    this.extVersion= is.readString(3, false, this.extVersion);
    this.uid= is.readInt64(4, false, this.uid);
    this.jwt= is.readString(5, false, this.jwt);
    this.ebsRequest= is.readStruct(6, false, this.ebsRequest);
};

HUYA.RouteEBSV2Resp = function()
{
    this.response = new ExtComm.ExtCommonResponse();
    this.ebsResponse = new HUYA.EbsResponse();
};
HUYA.RouteEBSV2Resp.prototype._clone = function () { return new HUYA.RouteEBSV2Resp(); }
HUYA.RouteEBSV2Resp.prototype._write = function (os, tag, value) { os.writeStruct(tag, value); }
HUYA.RouteEBSV2Resp.prototype._read  = function (is, tag, def) { return is.readStruct(tag, true, def); }

HUYA.RouteEBSV2Resp.prototype.writeTo = function (os)
{
    os.writeStruct(0, this.response);
    os.writeStruct(1, this.ebsResponse);
};

HUYA.RouteEBSV2Resp.prototype.readFrom = function (is)
{
    this.response= is.readStruct(0, false, this.response);
    this.ebsResponse= is.readStruct(1, false, this.ebsResponse);
};

window.HUYA = HUYA
