Select Git revision
activity.js
-
Reiter, Christoph authoredReiter, Christoph authored
activity.js 311 B
export class Activity {
constructor(data) {
this._data = data;
}
getName(lang) {
let desc = this._data['name'];
return desc[lang] ?? desc['en'];
}
getDescription(lang) {
let desc = this._data['description'];
return desc[lang] ?? desc['en'];
}
}