Table of Contents

Class DeviceUserAgentInfo

Namespace
VpnHood.Core.Client.Devices.Abstractions
Assembly
VpnHood.Core.Client.Devices.Abstractions.dll

Represents what a browser on the device sends as its user agent, in the parts the app builds its own from.

public class DeviceUserAgentInfo
Inheritance
DeviceUserAgentInfo
Inherited Members

Remarks

Google Analytics reads the OS and the device from it.

Properties

Browser

Gets the browser's words after the parentheses, which say Mobile on a phone.

public required string Browser { get; init; }

Property Value

string

Model

Gets the device's model, which a browser adds in the parentheses where one does, or null.

public string? Model { get; init; }

Property Value

string

Platform

Gets the platform, which goes in the parentheses, as Linux; Android 14.

public required string Platform { get; init; }

Property Value

string

Methods

GetChromeBrowser(bool)

Gets Chrome's words after the platform, of one fixed version, Chrome 150, for every device.

public static string GetChromeBrowser(bool isMobile)

Parameters

isMobile bool

true for a phone's, with Mobile.

Returns

string

The words, as AppleWebKit/537.36 (KHTML, like Gecko) Chrome/150.0.0.0 Safari/537.36.