UNPKG

@wildboar/copp

Version:

Connection-oriented presentation protocol (COPP) data structures and business logic in TypeScript

166 lines (165 loc) 7.12 kB
import { OPTIONAL, ASN1Element as _Element } from 'asn1-ts'; import * as $ from 'asn1-ts/dist/node/functional'; import { Protocol_version } from '../ISO8823-PRESENTATION/Protocol-version.ta'; export { Protocol_version, Protocol_version_version_1, version_1, _decode_Protocol_version, _encode_Protocol_version, } from '../ISO8823-PRESENTATION/Protocol-version.ta'; import { Responding_presentation_selector } from '../ISO8823-PRESENTATION/Responding-presentation-selector.ta'; export { Responding_presentation_selector, _decode_Responding_presentation_selector, _encode_Responding_presentation_selector, } from '../ISO8823-PRESENTATION/Responding-presentation-selector.ta'; import { Presentation_context_definition_result_list } from '../ISO8823-PRESENTATION/Presentation-context-definition-result-list.ta'; export { Presentation_context_definition_result_list, _decode_Presentation_context_definition_result_list, _encode_Presentation_context_definition_result_list, } from '../ISO8823-PRESENTATION/Presentation-context-definition-result-list.ta'; import { Default_context_result } from '../ISO8823-PRESENTATION/Default-context-result.ta'; export { Default_context_result, _decode_Default_context_result, _encode_Default_context_result, } from '../ISO8823-PRESENTATION/Default-context-result.ta'; import { Provider_reason } from '../ISO8823-PRESENTATION/Provider-reason.ta'; export { Provider_reason, Provider_reason_reason_not_specified, reason_not_specified, Provider_reason_temporary_congestion, temporary_congestion, Provider_reason_local_limit_exceeded, local_limit_exceeded, Provider_reason_called_presentation_address_unknown, called_presentation_address_unknown, Provider_reason_protocol_version_not_supported, protocol_version_not_supported, Provider_reason_default_context_not_supported, default_context_not_supported, Provider_reason_user_data_not_readable, user_data_not_readable, Provider_reason_no_PSAP_available, no_PSAP_available, _decode_Provider_reason, _encode_Provider_reason, } from '../ISO8823-PRESENTATION/Provider-reason.ta'; import { User_data } from '../ISO8823-PRESENTATION/User-data.ta'; export { User_data, _decode_User_data, _encode_User_data, } from '../ISO8823-PRESENTATION/User-data.ta'; /** * @summary CPR_PPDU_normal_mode_parameters * @description * * ### ASN.1 Definition: * * ```asn1 * CPR-PPDU-normal-mode-parameters ::= SEQUENCE { -- REMOVED_FROM_UNNESTING -- } * ``` * * @class */ export declare class CPR_PPDU_normal_mode_parameters { /** * @summary `protocol_version`. * @public * @readonly */ readonly protocol_version: OPTIONAL<Protocol_version>; /** * @summary `responding_presentation_selector`. * @public * @readonly */ readonly responding_presentation_selector: OPTIONAL<Responding_presentation_selector>; /** * @summary `presentation_context_definition_result_list`. * @public * @readonly */ readonly presentation_context_definition_result_list: OPTIONAL<Presentation_context_definition_result_list>; /** * @summary `default_context_result`. * @public * @readonly */ readonly default_context_result: OPTIONAL<Default_context_result>; /** * @summary `provider_reason`. * @public * @readonly */ readonly provider_reason: OPTIONAL<Provider_reason>; /** * @summary `user_data`. * @public * @readonly */ readonly user_data: OPTIONAL<User_data>; constructor( /** * @summary `protocol_version`. * @public * @readonly */ protocol_version: OPTIONAL<Protocol_version>, /** * @summary `responding_presentation_selector`. * @public * @readonly */ responding_presentation_selector: OPTIONAL<Responding_presentation_selector>, /** * @summary `presentation_context_definition_result_list`. * @public * @readonly */ presentation_context_definition_result_list: OPTIONAL<Presentation_context_definition_result_list>, /** * @summary `default_context_result`. * @public * @readonly */ default_context_result: OPTIONAL<Default_context_result>, /** * @summary `provider_reason`. * @public * @readonly */ provider_reason: OPTIONAL<Provider_reason>, /** * @summary `user_data`. * @public * @readonly */ user_data: OPTIONAL<User_data>); /** * @summary Restructures an object into a CPR_PPDU_normal_mode_parameters * @description * * This takes an `object` and converts it to a `CPR_PPDU_normal_mode_parameters`. * * @public * @static * @method * @param {Object} _o An object having all of the keys and values of a `CPR_PPDU_normal_mode_parameters`. * @returns {CPR_PPDU_normal_mode_parameters} */ static _from_object(_o: { [_K in keyof CPR_PPDU_normal_mode_parameters]: CPR_PPDU_normal_mode_parameters[_K]; }): CPR_PPDU_normal_mode_parameters; /** * @summary Getter that returns the default value for `protocol_version`. * @public * @static * @method */ static get _default_value_for_protocol_version(): Uint8ClampedArray; } /** * @summary The Leading Root Component Types of CPR_PPDU_normal_mode_parameters * @description * * This is an array of `ComponentSpec`s that define how to decode the leading root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_1_spec_for_CPR_PPDU_normal_mode_parameters: $.ComponentSpec[]; /** * @summary The Trailing Root Component Types of CPR_PPDU_normal_mode_parameters * @description * * This is an array of `ComponentSpec`s that define how to decode the trailing root component type list of a SET or SEQUENCE. * * @constant */ export declare const _root_component_type_list_2_spec_for_CPR_PPDU_normal_mode_parameters: $.ComponentSpec[]; /** * @summary The Extension Addition Component Types of CPR_PPDU_normal_mode_parameters * @description * * This is an array of `ComponentSpec`s that define how to decode the extension addition component type list of a SET or SEQUENCE. * * @constant */ export declare const _extension_additions_list_spec_for_CPR_PPDU_normal_mode_parameters: $.ComponentSpec[]; /** * @summary Decodes an ASN.1 element into a(n) CPR_PPDU_normal_mode_parameters * @function * @param {_Element} el The element being decoded. * @returns {CPR_PPDU_normal_mode_parameters} The decoded data structure. */ export declare function _decode_CPR_PPDU_normal_mode_parameters(el: _Element): CPR_PPDU_normal_mode_parameters; /** * @summary Encodes a(n) CPR_PPDU_normal_mode_parameters into an ASN.1 Element. * @function * @param {value} el The element being decoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The CPR_PPDU_normal_mode_parameters, encoded as an ASN.1 Element. */ export declare function _encode_CPR_PPDU_normal_mode_parameters(value: CPR_PPDU_normal_mode_parameters, elGetter: $.ASN1Encoder<CPR_PPDU_normal_mode_parameters>): _Element;