public List <ContactTokenDetails> retrieveDirectory(ICollection <string> contactTokens) // TODO: whacky
                                                                                                //throws NonSuccessfulResponseCodeException, PushNetworkException
        {
            LinkedList <HashSet <string> > temp      = new LinkedList <HashSet <string> >();
            ContactTokenList        contactTokenList = new ContactTokenList(contactTokens.ToList());
            string                  response         = makeRequest(DIRECTORY_TOKENS_PATH, "PUT", JsonUtil.toJson(contactTokenList));
            ContactTokenDetailsList activeTokens     = JsonUtil.fromJson <ContactTokenDetailsList>(response);

            return(activeTokens.getContacts());
        }
Example #2
0
        public async Task <List <ContactTokenDetails> > RetrieveDirectory(CancellationToken token, ICollection <string> contactTokens) // TODO: whacky
                                                                                                                                       //throws NonSuccessfulResponseCodeException, PushNetworkException
        {
            LinkedList <HashSet <string> > temp = new LinkedList <HashSet <string> >();
            ContactTokenList contactTokenList   = new ContactTokenList(contactTokens.ToList());
            string           response           = await MakeServiceRequestAsync(token, DIRECTORY_TOKENS_PATH, "PUT", JsonUtil.ToJson(contactTokenList));

            ContactTokenDetailsList activeTokens = JsonUtil.FromJson <ContactTokenDetailsList>(response);

            return(activeTokens.Contacts);
        }