react-native-lightspeedsdk
Version:
A react-native interface for using the LightspeedSDK
29 lines (24 loc) • 503 B
JavaScript
;
type PanelistAchievementMap = {
name:string,
date:string,
points:number,
surveyId:number
};
/**
* Represents an immutable Achievement History
*/
class PanelistAchievement{
name:string;
date:string;
points:number;
surveyId:numer;
constructor(map: PanelistAchievementMap) {
this.name = map.name;
this.date = map.date;
this.points = map.points;
this.surveyId = map.surveyId;
Object.freeze(this);
}
}
module.exports = PanelistAchievement;