Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions nodejs/FlightRadar24/entities/flight.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ const Entity = require("./entity");
* Flight representation.
*/
class Flight extends Entity {
static __heloModels: string[] = ["A002", "A109", "A119", "A129", "A139", "A149", "A169", "A189", "ALH", "ALO2", "ALO3", "AS32", "AS3B", "AS50", "AS55", "AS65", "B06", "B06T", "B105", "B212", "B222", "B230", "B407", "B412", "B427", "B429", "B430", "B47G", "B47J", "BK17", "BSTP", "EC20", "EC25", "EC30", "EC35", "EC45", "EC55", "EC75", "EH10", "EXPL", "FREL", "GAZL", "H2", "H269", "H47", "H500", "H53", "H53S", "H60", "H64", "HUCO", "KA32", "KA50", "KA52", "KMAX", "LAMA", "LYNX", "MI26", "MI38", "MI8", "NH90", "OH1", "PUMA", "R22", "R44", "R66", "RVAL", "S61", "S61R", "S76", "S92", "SUCO", "TIGR", "UH1", "UH1Y", "V22", "B505", "G2CA", "GYRO", "H160", "CDUS", "MM24"];

/**
* Constructor of Flight class.
*
Expand Down Expand Up @@ -172,6 +174,7 @@ class Flight extends Entity {
this.aircraftHistory = this.__getInfo(history?.["aircraft"], []);
this.aircraftImages = this.__getInfo(aircraft?.["images"], []);
this.aircraftModel = this.__getInfo(aircraft?.["model"]?.["text"]);
this.aircraftIsHelo = this.__heloModels.indexOf(this.aircraftModel) > -1;

// Airline information.
this.airlineName = this.__getInfo(airline?.["name"]);
Expand Down