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; }
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; }
public IDataDifference GetDifference(SecretaryJsonData other) => new SecretaryDataDiff(planetId, this, other);