react-native-lightspeedsdk
Version:
A react-native interface for using the LightspeedSDK
25 lines (21 loc) • 430 B
JavaScript
;
type LocationCategoryMap = {
categoryId:number,
name:string,
quota:number
};
/**
* Represents an immutable Location Category
*/
class LocationCategory {
categoryId:number;
name:string;
quota:number;
constructor(map: LocationCategoryMap) {
this.categoryId = map.categoryId;
this.name = map.name;
this.quota = map.quota;
Object.freeze(this);
}
}
module.exports = LocationCategory;