public Changelog(OldGlobal g, string updateName, string content, UpdateType type, ulong id) { g.Version.Update(type); Name = updateName; Content = content; Type = type; Id = id; Version = g.Version; Date = DateTime.Now; }
public void EnsureGlobal() { if (!Global.TryGetObject(out OldGlobal value)) { Update(new OldGlobal()); } else { Global = value; } }
public void Update(OldGlobal g) { Global.SetObject(g); g.Save(); }