예제 #1
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);
        }
예제 #2
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);
     }
 }