import { ItemsIds , GearType } from "../models/Enums" ; export class ParseItemWear { public itemId : ItemsIds ; public gearType : GearType ; constructor ( data ) { const wearData = this . parseString ( data ) ; this . itemId = + wearData [ 1 ] ; this . gearType = + wearData [ 2 ] ; } private parseString ( eventDataString ) { return eventDataString . split ( ',' ) ; } }