// Possibly Deprecated // TODO see if this is needed... we use i18n so proabably not // 14.05.2020 internal string GetPayload(AuditRecord audit, UserSetting settings) { switch (audit.EntityType) { case nameof(Training): return("added new training"); case nameof(MediaFile): return("attached new media"); case nameof(Bodyweight): return($"logged bodyweight of {audit.GetData<BodyweightDeserializeResult>().Entity.Value.FromMetricTo(settings.UnitSystem)} {settings.UnitSystem.GetUnitLabel()}"); case nameof(PersonalBest): return("has new PR!"); default: throw new ArgumentException($"Entity type is not recognized. {audit.EntityType}"); } }