public MyObjectBuilder_GlobalChatItem GetObjectBuilder() { var objectBuilder = new MyObjectBuilder_GlobalChatItem(); objectBuilder.Text = Text; objectBuilder.IdentityIdUniqueNumber = MyEntityIdentifier.GetIdUniqueNumber(IdentityId); return objectBuilder; }
public void Init(MyObjectBuilder_GlobalChatItem chatBuilder) { Text = chatBuilder.Text; IdentityId = MyEntityIdentifier.ConstructId(MyEntityIdentifier.ID_OBJECT_TYPE.IDENTITY, chatBuilder.IdentityIdUniqueNumber); }