Language frequencies

This commit is contained in:
M66B
2022-02-24 10:20:53 +01:00
parent 7f2661502b
commit e4d00f9056
2 changed files with 17 additions and 4 deletions

View File

@@ -115,7 +115,7 @@ public class DeepL {
languages.add(new Language(name, target, formality,
resid == 0 ? null : resid,
favorites && frequency > 0));
favorites && frequency > 0, frequency));
frequencies.put(target, frequency);
}
@@ -312,13 +312,15 @@ public class DeepL {
public boolean formality;
public Integer icon;
public boolean favorite;
public int frequency;
private Language(String name, String target, boolean formality, Integer icon, boolean favorit) {
private Language(String name, String target, boolean formality, Integer icon, boolean favorite, int frequency) {
this.name = name;
this.target = target;
this.formality = formality;
this.icon = icon;
this.favorite = favorit;
this.favorite = favorite;
this.frequency = frequency;
}
@Override