Example #1
0
        public List <Organization> GetOrganizationsByInnList(GetOrganizationsByInnListRequest innList)
        {
            const string queryString = "/GetOrganizationsByInnList";
            var          response    = PerformHttpRequest <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(null, queryString, innList);

            return(response.Organizations.Select(o => o.Organization).ToList());
        }
Example #2
0
        public async Task <List <Organization> > GetOrganizationsByInnListAsync(GetOrganizationsByInnListRequest innList)
        {
            const string queryString = "/GetOrganizationsByInnList";
            var          response    = await PerformHttpRequestAsync <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(null, queryString, innList).ConfigureAwait(false);

            return(response.Organizations.Select(o => o.Organization).ToList());
        }
Example #3
0
 public List <Organization> GetOrganizationsByInnList(GetOrganizationsByInnListRequest innList)
 {
     if (innList == null)
     {
         throw new ArgumentNullException("innList");
     }
     return(diadocHttpApi.GetOrganizationsByInnList(innList));
 }
Example #4
0
 public List <OrganizationWithCounteragentStatus> GetOrganizationsByInnList(string authToken, string myOrgId,
                                                                            GetOrganizationsByInnListRequest innList)
 {
     if (string.IsNullOrEmpty(authToken))
     {
         throw new ArgumentNullException("authToken");
     }
     if (string.IsNullOrEmpty(myOrgId))
     {
         throw new ArgumentNullException("myOrgId");
     }
     if (innList == null)
     {
         throw new ArgumentNullException("innList");
     }
     return(diadocHttpApi.GetOrganizationsByInnList(authToken, myOrgId, innList));
 }
Example #5
0
        public List <OrganizationWithCounteragentStatus> GetOrganizationsByInnList(string authToken, string myOrgId, GetOrganizationsByInnListRequest innList)
        {
            var queryString = string.Format("/GetOrganizationsByInnList?myOrgId={0}", myOrgId);
            var response    = PerformHttpRequest <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(authToken, queryString, innList);

            return(response.Organizations);
        }
Example #6
0
        public async Task <List <OrganizationWithCounteragentStatus> > GetOrganizationsByInnListAsync(string authToken, string myOrgId, GetOrganizationsByInnListRequest innList)
        {
            var queryString = $"/GetOrganizationsByInnList?myOrgId={myOrgId}";
            var response    = await PerformHttpRequestAsync <GetOrganizationsByInnListRequest, GetOrganizationsByInnListResponse>(authToken, queryString, innList).ConfigureAwait(false);

            return(response.Organizations);
        }