react-native-lightspeedsdk
Version:
A react-native interface for using the LightspeedSDK
26 lines (21 loc) • 460 B
JavaScript
;
type BasicUserInfoMap = {
panelistId:number,
firstName:string,
lastName:string
};
/**
* Represents an immutable BasicUserInfo object
*/
class BasicUserInfo {
panelistId:number;
firstName:string;
lastName:string;
constructor(map: BasicUserInfoMap) {
this.panelistId = map.panelistId;
this.firstName = map.firstName;
this.lastName = map.lastName;
Object.freeze(this);
}
}
module.exports = BasicUserInfo;