Created InventoryObject class

Converted JS to C#
Trying to fix all compile error