react-native-lightspeedsdk
Version:
A react-native interface for using the LightspeedSDK
29 lines (24 loc) • 476 B
JavaScript
;
type SweepsWinnerMap = {
name:string,
location:string,
currency:string,
amount:number
};
/**
* Represents an immutable Survey
*/
class SweepsCampaign {
name:string;
location:string;
currency:string;
amount:number;
constructor(map: SweepsWinnerMap) {
this.name = map.name;
this.location = map.location;
this.currency = map.currency;
this.amount = map.amount;
Object.freeze(this);
}
}
module.exports = SweepsCampaign;