Blame view

src/app/model/message.ts 924 Bytes
b02c6cc82   lsagona   rename vessel to ...
1
  export class Message {
632c4ac2f   lsagona   import vessels
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
    mmsi: string;
    time: string;
    latitude: string;
    longitude: string;
    speedOverGround: string;
    courseOverGround: string;
    heading: string;
    vesselName: string;
    imo: string;
    callSign: string;
    vesselType: string;
    status: string;
    length: string;
    width: string;
    draft: string;
    cargo: string;
  
  
    constructor(splitLine: string[]) {
      this.mmsi = splitLine[0];
      this.time = splitLine[1];
      this.latitude = splitLine[2];
      this.longitude = splitLine[3];
      this.speedOverGround = splitLine[4];
      this.courseOverGround = splitLine[5];
      this.heading = splitLine[6];
      this.vesselName = splitLine[7];
      this.imo = splitLine[8];
      this.callSign = splitLine[9];
      this.vesselType = splitLine[10];
      this.status = splitLine[11];
      this.length = splitLine[12];
      this.width = splitLine[13];
      this.draft = splitLine[14];
      this.cargo = splitLine[15];
    }
  }