public static global::Improbable.Metadata.Update DeserializeUpdate(global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj) { var update = new global::Improbable.Metadata.Update(); var obj = updateObj.GetFields(); if (obj.GetStringCount(1) == 1) { update.EntityType = obj.GetString(1); } return(update); }
public static void SerializeUpdate(global::Improbable.Metadata.Update update, global::Improbable.Worker.CInterop.SchemaComponentUpdate updateObj) { var obj = updateObj.GetFields(); { if (update.EntityType.HasValue) { var field = update.EntityType.Value; obj.AddString(1, field); } } }