Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public void EnsureGlobal()
 {
     if (!Global.TryGetObject(out OldGlobal value))
     {
         Update(new OldGlobal());
     }
     else
     {
         Global = value;
     }
 }
Exemplo n.º 3
0
 public void Update(OldGlobal g)
 {
     Global.SetObject(g);
     g.Save();
 }