public UniqueIdentifierValue GetUniqueIdentifier() { UniqueIdentifierValue _uniqueidentifiervalue = new UniqueIdentifierValue(); var deviceInformation = new EasClientDeviceInformation(); _uniqueidentifiervalue.Id = GetId(); _uniqueidentifiervalue.Model = deviceInformation.SystemProductName; _uniqueidentifiervalue.Manufacturer = deviceInformation.SystemManufacturer; _uniqueidentifiervalue.Name = deviceInformation.FriendlyName; _uniqueidentifiervalue.OS = deviceInformation.OperatingSystem; return(_uniqueidentifiervalue); }
public UniqueIdentifierValue GetUniqueIdentifier() { UniqueIdentifierValue _UniqueIdentifier = new UniqueIdentifierValue { //Serial = NSBundle.MainBundle.Serial, //Model = NSBundle.MainBundle.Model, //Manufacturer = NSBundle.MainBundle.Manufacturer, //Product = NSBundle.MainBundle.Product, //User = NSBundle.MainBundle.User, //Id = NSBundle.MainBundle.Id, //Device = NSBundle.MainBundle.Device, //Host = NSBundle.MainBundle.Host, //Display = NSBundle.MainBundle.Display }; return(_UniqueIdentifier); }
public UniqueIdentifierValue GetUniqueIdentifier() { var context = Android.App.Application.Context; var name = context.PackageManager.GetPackageInfo(context.PackageName, 0).VersionName; var code = context.PackageManager.GetPackageInfo(context.PackageName, 0).VersionCode; UniqueIdentifierValue _UniqueIdentifier = new UniqueIdentifierValue { Serial = Android.OS.Build.Serial, Model = Android.OS.Build.Model, Manufacturer = Android.OS.Build.Manufacturer, Product = Android.OS.Build.Product, User = Android.OS.Build.User, Id = Android.OS.Build.Id, Device = Android.OS.Build.Device, Host = Android.OS.Build.Host, Display = Android.OS.Build.Display, AppVersion = name, OS = Android.OS.Build.Board }; return(_UniqueIdentifier); }
public Property Two_instances_are_equal(UniqueIdentifierValue first, UniqueIdentifierValue other) => (first.Equals(other)).Label("Equals implementation");