Package devices

Class MobileDevice

    • Constructor Detail

      • MobileDevice

        public MobileDevice​(Widget widget,
                            SpeakerType speakerType,
                            AudioPlayer audioPlayer,
                            MoviePlayer moviePlayer)
        A Mobile Device that Plays Audio, Plays Videos, and has a Speaker.
        Parameters:
        widget - Widget Information.
        speakerType - The type of Speaker in the Device.
        audioPlayer - Audio Player Information.
        moviePlayer - Movie Player Screen Information.
    • Method Detail

      • getSpeakerType

        public SpeakerType getSpeakerType()
        Retrieve the Speaker Type information that was assigned.
        Returns:
        Speaker Type.
      • getAudioPlayer

        public AudioPlayer getAudioPlayer()
        Retrieve the Audio Player information that was assigned.
        Returns:
        Audio Player Object.
      • getMoviePlayer

        public MoviePlayer getMoviePlayer()
        Retrieve the MoviePlayer information that was assigned.
        Returns:
        MoviePlayer Object.
      • getInfo

        public java.lang.String getInfo()
        Additional product information when called by product.
        Returns:
        Mobile Device Details.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class Product