public virtual void Deserialize(GenericReader reader) { int version = reader.ReadInt(); //Version switch (version) { case 0: { _Parent = (VoteItem)reader.ReadItem(); _Name = (string)reader.ReadString(); _URL = (string)reader.ReadString(); _CoolDown = (TimeSpan)reader.ReadTimeSpan(); } break; } }
public VoteSite(VoteItem parent, string name, string url) { _Parent = parent; _Name = name; _URL = url; }
public VoteSite(VoteItem parent, string name) { _Parent = parent; _Name = name; }
public VoteSite(VoteItem parent) { _Parent = parent; }