model_C3DTTemporalPrimaryTransaction.js

import { C3DTTemporalTransaction } from './C3DTTemporalTransaction';

/**
 * Implements the primary transaction of the 3DTILES_temporal
 * extension. See the spec in
 * ./jsonSchemas/3DTILES_temporal.primaryTransaction.schema.json
 *
 * @class
 */
export class C3DTTemporalPrimaryTransaction extends C3DTTemporalTransaction {
  constructor(json) {
    super(json);
    /**
     * Type testing is not reliable in javascript therefore we have to use`
     *
       @type {string} */
    this.type = json.type;

    /**
     * booleans to do so...
     *
       @type {boolean} */
    this.isPrimary = true;
  }
}