public void RemoveReferral(ulong referralId) { if (!Referrals.ContainsKey(referralId)) { return; } Referrals.Remove(referralId); InviterList.Inviters[InviterId] = this; UpdateActiveReferrals(); }
public void UpdateReferral(ulong referralId, bool state) { if (!Referrals.ContainsKey(referralId)) { return; } Referrals[referralId].Active = state; InviterList.Inviters[InviterId] = this; UpdateActiveReferrals(); }
public void AddReferral(ulong referralId, bool state = true, DateTime?date = null) { if (Referrals.ContainsKey(referralId)) { return; } Referrals.Add(referralId, new Referral(referralId, state: state, date: date)); InviterList.Inviters[InviterId] = this; UpdateActiveReferrals(); }