Example #1
0
        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;
            }
        }
Example #2
0
 public VoteSite(VoteItem parent, string name, string url)
 {
     _Parent = parent;
     _Name   = name;
     _URL    = url;
 }
Example #3
0
 public VoteSite(VoteItem parent, string name)
 {
     _Parent = parent;
     _Name   = name;
 }
Example #4
0
 public VoteSite(VoteItem parent)
 {
     _Parent = parent;
 }
Example #5
0
		public VoteSite(VoteItem parent, string name, string url)
		{
			_Parent = parent;
			_Name = name;
			_URL = url;
		}
Example #6
0
		public VoteSite(VoteItem parent, string name)
		{
			_Parent = parent;
			_Name = name;
		}
Example #7
0
		public VoteSite(VoteItem parent)
		{
			_Parent = parent;
		}
Example #8
0
		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;
			}
		}