react-native-lightspeedsdk
Version:
A react-native interface for using the LightspeedSDK
32 lines (27 loc) • 634 B
JavaScript
;
type SurveyActivityMap = {
surveyId:string,
date:string,
awardAmount:number,
awardType:string,
status:string
};
/**
* Represents an immutable Achievement
*/
class SurveyActivity {
surveyId:string;
date:string;
awardAmount:number;
awardType:string;
status:string;
constructor(tokenMap: SurveyActivityMap) {
this.surveyId=tokenMap.surveyId;
this.date=tokenMap.date;
this.awardAmount=tokenMap.awardAmount;
this.awardType=tokenMap.awardType;
this.status=tokenMap.status;
Object.freeze(this);
}
}
module.exports = SurveyActivity;