public BankIdSupportedDevice(BankIdSupportedDeviceType deviceType, BankIdSupportedDeviceOs deviceOs, BankIdSupportedDeviceBrowser deviceBrowser, BankIdSupportedDeviceOsVersion deviceOsVersion) { DeviceType = deviceType; DeviceOs = deviceOs; DeviceBrowser = deviceBrowser; DeviceOsVersion = deviceOsVersion; }
private static BankIdSupportedDeviceType GetDeviceType(BankIdSupportedDeviceOs deviceOs) { return(deviceOs switch { BankIdSupportedDeviceOs.Windows => BankIdSupportedDeviceType.Desktop, BankIdSupportedDeviceOs.MacOs => BankIdSupportedDeviceType.Desktop, BankIdSupportedDeviceOs.Ios => BankIdSupportedDeviceType.Mobile, BankIdSupportedDeviceOs.Android => BankIdSupportedDeviceType.Mobile, BankIdSupportedDeviceOs.WindowsPhone => BankIdSupportedDeviceType.Mobile, _ => BankIdSupportedDeviceType.Unknown });
public BankIdSupportedDevice(BankIdSupportedDeviceType deviceType, BankIdSupportedDeviceOs deviceOs, BankIdSupportedDeviceBrowser deviceBrowser) { DeviceType = deviceType; DeviceOs = deviceOs; DeviceBrowser = deviceBrowser; }