コード例 #1
0
        public void RemoveContacts(CfRemoveContacts removeContacts)
        {
            var contacts = removeContacts.ContactId == null ? null
                            : removeContacts.ContactId.ToList().ConvertAll(i => i.ToString(CultureInfo.InvariantCulture)).ToArray();

            BaseRequest <string>(HttpMethod.Delete, new RemoveContacts(contacts == null ? string.Empty : string.Join(" ", contacts)),
                                 new CallfireRestRoute <Contact>());
        }
コード例 #2
0
        public void Test_RemoveContactsIdNull()
        {
            var removeContacts = new CfRemoveContacts
            {
                ContactId = null
            };

            Client.RemoveContacts(removeContacts);
        }
コード例 #3
0
        public void Test_RemoveContactsComplete()
        {
            var removeContacts = new CfRemoveContacts
            {
                ContactId = new[] { 169500183001 }
            };

            Client.RemoveContacts(removeContacts);
        }
コード例 #4
0
        public void Test_RemoveContactsInvalidId()
        {
            var removeContacts = new CfRemoveContacts
            {
                ContactId = new [] { (long)489684631 }
            };

            Client.RemoveContacts(removeContacts);
        }
コード例 #5
0
        public void RemoveContacts(CfRemoveContacts removeContacts)
        {
            var contacts = removeContacts.ContactId == null ? null : removeContacts.ContactId.ToList().ConvertAll(i => i.ToString(CultureInfo.InvariantCulture)).ToArray();

            ContactService.RemoveContacts(new RemoveContacts(contacts == null ? string.Empty : string.Join(" ", contacts)));
        }