Home Manual Reference Source Test
import Slice from 'FreeBird_SDK/src/SliceClass.js'
public class | source

Slice

Extends:

LegSegment → Slice

Direct Subclass:

Trip

A slice represents a traveller's intent, the portion of a low-fare search corresponding to a traveler's request to get between two points. One-way journeys are generally expressed using 1 slice, round-trips using 2. The slices make up a trip's itinerary.

Test:

Constructor Summary

Public Constructor
public

constructor(duration: number, segment: object[])

Public Constructors

public constructor(duration: number, segment: object[]) source

Override:

Segment#constructor

Params:

NameTypeAttributeDescription
duration number

Flight duration (to reach from source to the destination)

segment object[]

Segment object having flight data. Slice can have multiple segments