Ejemplo n.º 1
0
        public IDictionary <string, OneSpanSign.Sdk.Sender> GetSenders(Direction direction, PageRequest request)
        {
            OneSpanSign.API.Result <OneSpanSign.API.Sender> apiResponse = apiClient.GetSenders(direction, request);

            IDictionary <string, OneSpanSign.Sdk.Sender> result = new Dictionary <string, OneSpanSign.Sdk.Sender>();

            foreach (OneSpanSign.API.Sender apiSender in apiResponse.Results)
            {
                result.Add(apiSender.Email, new SenderConverter(apiSender).ToSDKSender());
            }

            return(result);
        }
Ejemplo n.º 2
0
        public IDictionary <string, Silanis.ESL.SDK.Sender> GetSenders(Direction direction, PageRequest request)
        {
            Silanis.ESL.API.Result <Silanis.ESL.API.Sender> apiResponse = apiClient.GetSenders(direction, request);

            IDictionary <string, Silanis.ESL.SDK.Sender> result = new Dictionary <string, Silanis.ESL.SDK.Sender>();

            foreach (Silanis.ESL.API.Sender apiSender in apiResponse.Results)
            {
                result.Add(apiSender.Email, new SenderConverter(apiSender).ToSDKSender());
            }

            return(result);
        }