Пример #1
0
 internal void sendAddRemoveContactMasterListMessage(String username, MSNEnumerations.ContactLists list, bool isAdd)
 {
     if (MasterListContactAdded != null)
     {
         MasterListContactAdded(username, isAdd, list);
     }
 }
Пример #2
0
        public void setListMember(MSNEnumerations.ContactLists list, bool member)
        {
            if (list.Equals(MSNEnumerations.ContactLists.allow_list))
            {
                onAllowList = member;
            }
            else if (list.Equals(MSNEnumerations.ContactLists.block_list))
            {
                onBlockList = member;
            }
            else if (list.Equals(MSNEnumerations.ContactLists.forward_list))
            {
                onForwardList = member;
            }
            else if (list.Equals(MSNEnumerations.ContactLists.reverse_list))
            {
                onReverseList = member;
            }

            controller.sendAddRemoveContactMasterListMessage(username, list, true);
        }
Пример #3
0
 public bool getListMember(MSNEnumerations.ContactLists list)
 {
     if (list.Equals(MSNEnumerations.ContactLists.allow_list))
     {
         return(onAllowList);
     }
     else if (list.Equals(MSNEnumerations.ContactLists.block_list))
     {
         return(onBlockList);
     }
     else if (list.Equals(MSNEnumerations.ContactLists.forward_list))
     {
         return(onForwardList);
     }
     else if (list.Equals(MSNEnumerations.ContactLists.reverse_list))
     {
         return(onReverseList);
     }
     else
     {
         return(false);
     }
 }