summaryrefslogtreecommitdiffstats
path: root/comm/third_party/asn1js/src/Choice.ts
blob: 3246bfa3c3066c17948df43819630c53207910f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { BaseBlock } from "./BaseBlock";
import { IAny, Any } from "./Any";

export interface IChoice extends IAny {
  value: BaseBlock[];
}

export type ChoiceParams = Partial<IChoice>;

export class Choice extends Any implements IChoice {
  public value: BaseBlock[];

  constructor({
    value = [],
    ...parameters
  }: ChoiceParams = {}) {
    super(parameters);

    this.value = value;
  }

}