コード例 #1
0
 public SecretaryDataDiff(int id, SecretaryJsonData first, SecretaryJsonData second)
 {
     Id = id;
     PriceForFirstSecretaryDiff           = second.priceForFirstSecretary - first.priceForFirstSecretary;
     PriceIncreasingForNextSecretaryDiff  = second.priceIncreasingForNextSecretary - first.priceIncreasingForNextSecretary;
     ReportCountPerSecretaryDiff          = second.reportCountPerSecretary - first.reportCountPerSecretary;
     FatigueOfEfficiencyDiff              = second.fatigueOfEfficiency - first.fatigueOfEfficiency;
     ReportCountProcessedPer10SecondsDiff = second.reportCountProcessedPer10Seconds - first.reportCountProcessedPer10Seconds;
     AuditCashPriceDiff = second.auditCashPrice - first.auditCashPrice;
 }
コード例 #2
0
 public SecretaryData(SecretaryJsonData data)
 {
     this.PlanetId = data.planetId;
     this.PriceForFirstSecretary           = data.priceForFirstSecretary;
     this.PriceIncreasingForNextSecretary  = data.priceIncreasingForNextSecretary;
     this.ReportCountPerSecretary          = data.reportCountPerSecretary;
     this.FatigueOfEfficiency              = data.fatigueOfEfficiency;
     this.ReportCountProcessedPer10Seconds = data.reportCountProcessedPer10Seconds;
     this.AuditCashPrice = data.auditCashPrice;
 }
コード例 #3
0
 public IDataDifference GetDifference(SecretaryJsonData other)
 => new SecretaryDataDiff(planetId, this, other);