private void _parse() { _responseType = ((ActionResponseType)m_io.ReadU1()); switch (ResponseType) { case ActionResponseType.ActionResponseNormal: { _response = new ActionResponseNormal(m_io, this, m_root); break; } case ActionResponseType.ActionResponseWithPblock: { _response = new ActionResponseWithPblock(m_io, this, m_root); break; } case ActionResponseType.ActionResponseWithList: { _response = new ActionResponseWithList(m_io, this, m_root); break; } case ActionResponseType.ActionResponseNextPblock: { _response = new ActionResponseNextPblock(m_io, this, m_root); break; } } }
public ActionResponseWithOptionalData(KaitaiStream io, ActionResponseNormal parent = null, DlmsActionResponse root = null) : base(io) { m_parent = parent; m_root = root; _parse(); }