Ejemplo n.º 1
0
        public async Task <IEnumerable <ClaimStatus> > GetClaimStatus()
        {
            IEnumerable <ClaimStatus>  claimStatus = null;
            ActionOutput <ClaimStatus> result      = await _httpClient.GetJsonAsync <ActionOutput <ClaimStatus> >($"Claim/GetClaimStatusList");

            if (result.Status == ActionStatus.Successfull)
            {
                claimStatus = result.Results as IEnumerable <ClaimStatus>;
            }
            else
            {
                claimStatus = new List <ClaimStatus>();
            }
            return(claimStatus);
        }
Ejemplo n.º 2
0
        public async Task <Claim> GetClaimById(int claimId)
        {
            Claim claim = null;
            ActionOutput <Claim> result = await _httpClient.GetJsonAsync <ActionOutput <Claim> >(
                $"Claim/GetClaimDetailsById?tenantid={tenantId}&userId={userId}&claimId={claimId}");

            if (result.Status == ActionStatus.Successfull)
            {
                return(claim = result.data as Claim);
            }
            else
            {
                return(claim);
            }
        }
Ejemplo n.º 3
0
        public async Task <IEnumerable <Tenant> > GetTenantList()
        {
            IEnumerable <Tenant>  tenantList = null;
            ActionOutput <Tenant> result     = await _httpClient.GetJsonAsync <ActionOutput <Tenant> >($"Tenant/GetTenantList?userId={userId}");

            if (result.Status == ActionStatus.Successfull)
            {
                tenantList = result.Results as IEnumerable <Tenant>;
            }
            else
            {
                tenantList = new List <Tenant>();
            }
            return(tenantList);
        }
Ejemplo n.º 4
0
        public async Task <IEnumerable <TaxForms> > GetTaxForm()
        {
            IEnumerable <TaxForms>  taxFormList = null;
            ActionOutput <TaxForms> result      = await _httpClient.GetJsonAsync <ActionOutput <TaxForms> >($"Claim/GetTaxForms");

            if (result.Status == ActionStatus.Successfull)
            {
                taxFormList = result.Results as IEnumerable <TaxForms>;
            }
            else
            {
                taxFormList = new List <TaxForms>();
            }
            return(taxFormList);
        }
Ejemplo n.º 5
0
        public async Task <IEnumerable <ClaimTranscript> > GetClaimTranscript(int claimId)
        {
            IEnumerable <ClaimTranscript>  hierarchy = null;
            ActionOutput <ClaimTranscript> result    = await _httpClient.GetJsonAsync <ActionOutput <ClaimTranscript> >(
                $"Claim/GetClaimTranscriptsListing?tenantid={tenantId}&userId={userId}&claimId={claimId}");

            if (result.Status == ActionStatus.Successfull)
            {
                hierarchy = result.Results as IEnumerable <ClaimTranscript>;
            }
            else
            {
                hierarchy = new List <ClaimTranscript>();
            }
            return(hierarchy);
        }
Ejemplo n.º 6
0
        public async Task <IEnumerable <Claim> > GetClaimListingByStatus(int statusId)
        {
            IEnumerable <Claim>  claim  = null;
            ActionOutput <Claim> result = await _httpClient.GetJsonAsync <ActionOutput <Claim> >(
                $"Claim/GetClaimListingByStatus?tenantid={tenantId}&userId={userId}&statusId={statusId}");

            if (result.Status == ActionStatus.Successfull)
            {
                claim = result.Results as IEnumerable <Claim>;
            }
            else
            {
                claim = new List <Claim>();
            }
            return(claim);
        }
Ejemplo n.º 7
0
        public async Task <IEnumerable <UnitImportActivitySession> > GetFuelRecords()
        {
            IEnumerable <UnitImportActivitySession>  fuelResults = null;
            ActionOutput <UnitImportActivitySession> result      = await _httpClient.GetJsonAsync <ActionOutput <UnitImportActivitySession> >
                                                                       ($"Location/ImportFuelFileSummary?activityId={4879}&tenantId={tenantId}&userId={userId}");

            Console.WriteLine($"Rsponse reciver from API {DateTime.Now}");
            if (result.Status == ActionStatus.Successfull)
            {
                fuelResults = result.Results as IEnumerable <UnitImportActivitySession>;
            }
            else
            {
                fuelResults = new List <UnitImportActivitySession>();
            }
            return(fuelResults);
        }