Ejemplo n.º 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            string catdatid = lstBxAnaKategori.SelectedItem.ToString().Substring(0, 7);

            parentCat = getParentCat(Convert.ToInt32(catdatid));

            MessageBox.Show(parentCat.name);
        }
Ejemplo n.º 2
0
        private static ParentCategoryData getParentCat(long CatId)
        {
            var authentication = new n11Api.ServiceReference1.Authentication();

            authentication.appKey    = apiAnahtari1; //api anahtarınız
            authentication.appSecret = apiSifresi1;  //api şifeniz

            CategoryServicePortClient proxy   = new CategoryServicePortClient();
            GetParentCategoryRequest  request = new GetParentCategoryRequest();

            request.auth       = authentication;
            request.categoryId = CatId;
            GetParentCategoryResponse parentCat     = proxy.GetParentCategory(request);
            ParentCategoryData        parentCatData = parentCat.category;

            return(parentCat.category);
        }
Ejemplo n.º 3
0
        public ParentCategoryData GetParentCategory(long categoryId)
        {
            com.n11Category.api.Authentication authentication = new com.n11Category.api.Authentication
            {
                appKey    = apiKey,
                appSecret = apiSecret
            };

            GetParentCategoryRequest getParentCategoryRequest = new GetParentCategoryRequest();

            getParentCategoryRequest.auth       = authentication;
            getParentCategoryRequest.categoryId = categoryId;

            CategoryServicePortService port = new CategoryServicePortService();
            GetParentCategoryResponse  getParentCategoryResponse = port.GetParentCategory(getParentCategoryRequest);
            ParentCategoryData         category = getParentCategoryResponse.category;

            return(category);
        }
Ejemplo n.º 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            string catdatid = lstBxAnaKategori.SelectedItem.ToString().Substring(0, 7);
            parentCat = getParentCat(Convert.ToInt32(catdatid));

            MessageBox.Show(parentCat.name);
        }