Class Info
- java.lang.Object
-
- aero.panasonic.inflight.services.seatinfo.v1.Info
-
public class Info extends java.lang.ObjectTheInfoclass provides detailed information about the seat, including cabin class, seat number, hardware information, and additional capabilities such as camera and CapSense availability. It is intended for use in seatback environments only.Usage of this class requires the
#initService(Context, IInFlightCallback, InFlight)method to be called for proper initialization.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCabinClass()Retrieves the cabin class of the seat, such as "First Class," "Business," or "Economy."java.lang.StringgetModel()Retrieves the model of the seatback monitor.java.lang.StringgetOsVersion()Retrieves the version of the operating system running on the seatback monitor.chargetSeatLabel()Retrieves the seat label/location within the row, such as 'A', 'B', or 'C.'java.lang.StringgetSeatNumber()Retrieves the complete seat number, combining the row number and seat label/location, e.g., "26B" or "2A."intgetSeatRow()Retrieves the seat's row number.static voidinitService(Context context, IInFlightCallback inFlightCallback, InFlight inFlight)Initializes theInfoservice object and invokes the provided callback upon completion.booleanisCameraAvailable()Checks whether the camera functionality is available in the seatback monitor.booleanisCapsenseAvailable()Checks whether CapSense functionality is available in the seatback monitor.
-
-
-
Method Detail
-
initService
public static void initService(Context context, IInFlightCallback inFlightCallback, InFlight inFlight)Initializes theInfoservice object and invokes the provided callback upon completion. This method must be called before accessing seat-related information.- Parameters:
context- the application context, must not be null.inFlightCallback- anIInFlightCallbackto receive initialization status.inFlight- a reference to theInFlightinstance, can be null. If null, a new instance will be created internally.
-
getCabinClass
public java.lang.String getCabinClass()
Retrieves the cabin class of the seat, such as "First Class," "Business," or "Economy."- Returns:
- the cabin class as a
String.
-
getSeatRow
public int getSeatRow()
Retrieves the seat's row number.- Returns:
- the row number as an
int, e.g., 26 or 2.
-
getSeatNumber
public java.lang.String getSeatNumber()
Retrieves the complete seat number, combining the row number and seat label/location, e.g., "26B" or "2A."- Returns:
- the seat number as a
String.
-
getSeatLabel
public char getSeatLabel()
Retrieves the seat label/location within the row, such as 'A', 'B', or 'C.'- Returns:
- the seat label as a
char.
-
isCameraAvailable
public boolean isCameraAvailable()
Checks whether the camera functionality is available in the seatback monitor.- Returns:
trueif the camera is available;falseotherwise.
-
isCapsenseAvailable
public boolean isCapsenseAvailable()
Checks whether CapSense functionality is available in the seatback monitor.- Returns:
trueif CapSense is available;falseotherwise.
-
getOsVersion
public java.lang.String getOsVersion()
Retrieves the version of the operating system running on the seatback monitor.- Returns:
- the OS version as a
String, e.g., "Android 4.1."
-
getModel
public java.lang.String getModel()
Retrieves the model of the seatback monitor.- Returns:
- the monitor model as a
String, e.g., "Elite v3" or "Econ v1."
-
-