internal void AddToList(MSNList list) { if ((list == MSNList.BlockedList) && !this.Blocked) { this.lists |= MSNList.BlockedList; this.ContactBlocked(this, new EventArgs()); } else { this.lists |= list; } }
internal void RemoveFromList(MSNList list) { if ((list == MSNList.BlockedList) && this.Blocked) { this.lists ^= MSNList.BlockedList; this.ContactUnBlocked(this, new EventArgs()); } else { this.lists ^= list; } }
// Methods public ListMutateEventArgs(Contact contact, MSNList affectedList) { this.Subject = contact; this.AffectedList = affectedList; }
protected string GetMSNList(MSNList list) { switch (list) { case MSNList.ForwardList: { return "FL"; } case MSNList.AllowedList: { return "AL"; } case MSNList.BlockedList: { return "BL"; } case MSNList.ReverseList: { return "RL"; } } throw new MSNException("Unknown MSNList type"); }
internal void RemoveFromList(Contact contact, MSNList list) { object[] objArray1 = new object[9] { "REM ", this.NewTrans(), " ", this.GetMSNList(list), " ", contact.Mail, " ", contact.Mail, "\r\n" } ; this.SocketSend(string.Concat(objArray1)); }
public Messenger.ContactList.ListEnumerator GetListEnumerator(MSNList type) { switch (type) { case MSNList.ForwardList: { return this.ForwardList; } case MSNList.AllowedList: { return this.AllowedList; } case MSNList.BlockedList: { return this.BlockedList; } case MSNList.ReverseList: { return this.ReverseList; } } return this.AllList; }
// Methods public ListReceivedEventArgs(MSNList affectedList) { this.AffectedList = affectedList; }