static void RunIDNC()
        {
            Console.WriteLine("----- Running IDNC -----");

            //Adding IDNC with phone number list and project id
            client.AddIDNC(shortPhoneNumberList, "ProjectID");

            //Removing IDNC with phone number list and project id
            client.RemoveIDNC(shortPhoneNumberList, "ProjectID");

            //Getting IDNC count using a project id
            IDNCDetail idncDetail = client.GetIDNCCount("ProjectID");

            DisplayHelper.DisplayIDNCDetail(idncDetail);

            //Getting IDNC status using phone number list and project id
            List <IDNCStatus> idncStatusList = client.GetIDNCStatus(shortPhoneNumberList, "ProjectID");

            DisplayHelper.DisplayIDNCStatus(idncStatusList);
        }
예제 #2
0
 public static void DisplayIDNCDetail(IDNCDetail idncDetail)
 {
     Console.WriteLine("IDNC DETAILS:");
     Console.WriteLine("DistinctPhoneNumbers: {0}", idncDetail.DistinctPhoneNumbers);
     Console.WriteLine("MostRecentChange: {0}", idncDetail.MostRecentChange);
 }