コード例 #1
0
        public async Task <ApiResponse <string> > DeleteInvoiceByIdentifier(string id)
        {
            var url = $"{EndPoint}/{id}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
コード例 #2
0
        public async Task <ApiResponse <string> > DeleteInvoiceByKey(string companyKey, string documentType, string serie, int seriesNumber)
        {
            var url = $"{EndPoint}/{companyKey}/{documentType}/{serie}/{seriesNumber}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
コード例 #3
0
        public async Task <ApiResponse <string> > DeleteItemByKey(string itemKey)
        {
            var url = $"{EndPoint}/{itemKey}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
コード例 #4
0
        public async Task <ApiResponse <string> > DeleteInvoiceWTaxByIdentifier(string documentType, string serie, int seriesNumber, string companyKey, string lineId)
        {
            var url = $"{EndPoint}/{companyKey}/{documentType}/{serie}/{seriesNumber}/documentWTaxes/{lineId}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
コード例 #5
0
ファイル: Supplier.cs プロジェクト: ByteNuts/JasminSdk
        public async Task <ApiResponse <string> > DeleteSupplierPartyByKey(string partyKey)
        {
            var url = $"{EndPoint}/{partyKey}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
コード例 #6
0
ファイル: Supplier.cs プロジェクト: ByteNuts/JasminSdk
        public async Task <ApiResponse <string> > DeleteSupplierItemPriceByIdentifier(string partyKey, string lineId)
        {
            var url = $"{EndPoint}/{partyKey}/supplierItemPrices/{lineId}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
コード例 #7
0
        public async Task <ApiResponse <string> > DeletePriceListLineByIdentifier(string itemKey, string lineId)
        {
            var url = $"{EndPoint}/{itemKey}/priceListLines/{lineId}";

            var apiCall = new ApiCall <string>(Logger);

            return(await apiCall.Delete(url, true));
        }
コード例 #8
0
        /// <summary>
        /// Deletes the object.
        /// </summary>
        /// <returns></returns>
        public async Task DeleteObject()
        {
            var StatusCode = await ApiCall.Delete(path, HuntedAnimal.HuntedAnimalId);

            //Value = StatusCode.ToString();

            if (StatusCode.ToString() == "OK")
            {
                //var temp = Animal;
                //Animal = null;
                HuntedAnimals.Remove(HuntedAnimal);
            }
        }
コード例 #9
0
        public void OnExcluir(int id)
        {
            var api = new ApiCall();

            api.Delete("/estoques", id).ContinueWith((t) =>
            {
                if (t.IsCompleted)
                {
                    Device.BeginInvokeOnMainThread(PopularLista);
                }
                else
                {
                    Device.BeginInvokeOnMainThread(() =>
                    {
                        MessagingCenter.Send("msgEstoque", "alert", "Erro ao excluir.");
                    });
                }
            });
        }