converted WriteObjectState to an enum
1 file changed