public DareInformations(double DareId, CharacterBasicMinimalInformations Creator, ulong SubscriptionFee, ulong Jackpot, ushort MaxCountWinners, double EndDate, bool IsPrivate, uint GuildId, uint AllianceId, List <DareCriteria> Criterions, double StartDate) { this.DareId = DareId; this.Creator = Creator; this.SubscriptionFee = SubscriptionFee; this.Jackpot = Jackpot; this.MaxCountWinners = MaxCountWinners; this.EndDate = EndDate; this.IsPrivate = IsPrivate; this.GuildId = GuildId; this.AllianceId = AllianceId; this.Criterions = Criterions; this.StartDate = StartDate; }
public override void Deserialize(IDataReader reader) { DareId = reader.ReadDouble(); Creator = new CharacterBasicMinimalInformations(); Creator.Deserialize(reader); SubscriptionFee = reader.ReadVarUhLong(); Jackpot = reader.ReadVarUhLong(); MaxCountWinners = reader.ReadUnsignedShort(); EndDate = reader.ReadDouble(); IsPrivate = reader.ReadBoolean(); GuildId = reader.ReadVarUhInt(); AllianceId = reader.ReadVarUhInt(); var CriterionsCount = reader.ReadShort(); Criterions = new List <DareCriteria>(); for (var i = 0; i < CriterionsCount; i++) { var objectToAdd = new DareCriteria(); objectToAdd.Deserialize(reader); Criterions.Add(objectToAdd); } StartDate = reader.ReadDouble(); }