BrowserImpl

class BrowserImpl(parsedBrowser: Browser) : Browser

Implements the Browser interface, providing concrete values for the browser's name and version.

This class extracts the browser's name and version from the provided com.tecknobit.kinfo.model.Browser object, ensuring null-safe values are used via the safeValue() method from the WebInfoItem interface.

Author

N7ghtm4r3

Parameters

parsedBrowser

The Browser object containing the parsed browser information, used to extract the name and version.

See also

Constructors

Link copied to clipboard
constructor(parsedBrowser: Browser)

Properties

Link copied to clipboard
open override val name: String

The name of the browser. This value is safely extracted from the provided parsedBrowser object.

Link copied to clipboard
open override val version: String

The version of the browser. This value is safely extracted from the provided parsedBrowser object.

Functions

Link copied to clipboard
open fun String?.safeValue(): String

Method to use a null-safe value.