Пример #1
0
 public static ClientData CreateClientData(MinerData data)
 {
     return(new ClientData()
     {
         ClientId = data.ClientId,
         MinerIp = data.MinerIp,
         MinerName = data.MinerName,
         ClientName = data.ClientName,
         CreatedOn = data.CreatedOn,
         GroupId = data.GroupId,
         WorkId = data.WorkId,
         WindowsLoginName = data.WindowsLoginName,
         WindowsPassword = data.WindowsPassword,
         Id = data.Id,
         IsAutoBoot = false,
         IsAutoStart = false,
         IsAutoRestartKernel = false,
         IsNoShareRestartKernel = false,
         NoShareRestartKernelMinutes = 0,
         IsNoShareRestartComputer = false,
         NoShareRestartComputerMinutes = 0,
         IsPeriodicRestartKernel = false,
         PeriodicRestartKernelHours = 0,
         IsPeriodicRestartComputer = false,
         PeriodicRestartComputerHours = 0,
         GpuDriver = String.Empty,
         GpuType = GpuType.Empty,
         OSName = String.Empty,
         OSVirtualMemoryMb = 0,
         GpuInfo = String.Empty,
         Version = String.Empty,
         IsMining = false,
         BootOn = DateTime.MinValue,
         MineStartedOn = DateTime.MinValue,
         ModifiedOn = DateTime.MinValue,
         MainCoinCode = String.Empty,
         MainCoinTotalShare = 0,
         MainCoinRejectShare = 0,
         MainCoinSpeed = 0,
         MainCoinPool = String.Empty,
         MainCoinWallet = String.Empty,
         Kernel = String.Empty,
         IsDualCoinEnabled = false,
         DualCoinPool = String.Empty,
         DualCoinWallet = String.Empty,
         DualCoinCode = String.Empty,
         DualCoinTotalShare = 0,
         DualCoinRejectShare = 0,
         DualCoinSpeed = 0,
         KernelCommandLine = String.Empty,
         GpuTable = new GpuSpeedData[0]
     });
 }
Пример #2
0
 public static ClientData CreateClientData(MinerData data)
 {
     return(new ClientData()
     {
         ClientId = data.ClientId,
         MinerIp = data.MinerIp,
         MinerName = data.MinerName,
         ClientName = data.ClientName,
         CreatedOn = data.CreatedOn,
         GroupId = data.GroupId,
         WorkId = data.WorkId,
         MineWorkId = Guid.Empty,
         MineWorkName = string.Empty,
         WindowsLoginName = data.WindowsLoginName,
         WindowsPassword = data.WindowsPassword,
         Id = data.Id,
         IsAutoBoot = false,
         IsAutoStart = false,
         AutoStartDelaySeconds = 15,
         IsAutoRestartKernel = false,
         AutoRestartKernelTimes = 10,
         IsNoShareRestartKernel = false,
         NoShareRestartKernelMinutes = 0,
         IsNoShareRestartComputer = false,
         NoShareRestartComputerMinutes = 0,
         IsPeriodicRestartKernel = false,
         PeriodicRestartKernelHours = 0,
         IsPeriodicRestartComputer = false,
         PeriodicRestartComputerHours = 0,
         PeriodicRestartKernelMinutes = 10,
         PeriodicRestartComputerMinutes = 10,
         IsAutoStartByCpu = false,
         IsAutoStopByCpu = false,
         CpuGETemperatureSeconds = 60,
         CpuLETemperatureSeconds = 60,
         CpuStartTemperature = 40,
         CpuStopTemperature = 65,
         GpuDriver = String.Empty,
         GpuType = GpuType.Empty,
         OSName = String.Empty,
         OSVirtualMemoryMb = 0,
         GpuInfo = String.Empty,
         Version = String.Empty,
         IsMining = false,
         BootOn = DateTime.MinValue,
         MineStartedOn = DateTime.MinValue,
         ModifiedOn = DateTime.MinValue,
         MainCoinCode = String.Empty,
         MainCoinTotalShare = 0,
         MainCoinRejectShare = 0,
         MainCoinSpeed = 0,
         MainCoinPool = String.Empty,
         MainCoinWallet = String.Empty,
         Kernel = String.Empty,
         IsDualCoinEnabled = false,
         DualCoinPool = String.Empty,
         DualCoinWallet = String.Empty,
         DualCoinCode = String.Empty,
         DualCoinTotalShare = 0,
         DualCoinRejectShare = 0,
         DualCoinSpeed = 0,
         KernelCommandLine = String.Empty,
         MainCoinPoolDelay = string.Empty,
         DualCoinPoolDelay = string.Empty,
         DiskSpace = string.Empty,
         IsFoundOneGpuShare = false,
         IsRejectOneGpuShare = false,
         IsGotOneIncorrectGpuShare = false,
         CpuPerformance = 0,
         CpuTemperature = 0,
         GpuTable = new GpuSpeedData[0]
     });
 }