GetService() public static method

public static GetService ( ) : MeliService
return MeliService
Esempio n. 1
0
        protected void ItemCommand(Object Sender, RepeaterCommandEventArgs e)
        {
            string[] split        = ((string)e.CommandArgument).Split(',');
            string   productID    = split[0];
            bool     in_whishlist = bool.Parse(split[1]);

            if (in_whishlist)
            {
                Handler.RemoveProductFromWhishList(productID);

                Product searchProduct = GetProductFromSearchResults(productID);
                searchProduct.in_whishlist = false;

                PreSelectedLink.InnerText = "Lista de artículos pre-seleccionados (" + Handler.WhishList(Session["Category"].ToString()).Count + ")";
            }
            else
            {
                MeliService ms      = MeliService.GetService();
                ItemObject  product = ms.GetProduct(productID);

                bool pertenece = Handler.IsProductInWishList(productID);
                if (!pertenece)
                {
                    Handler.AddProductToWhishList(product);
                    Product searchProduct = GetProductFromSearchResults(productID);
                    searchProduct.in_whishlist = true;
                }
            }
            PreSelectedLink.InnerText = "Lista de artículos pre-seleccionados (" + Handler.WhishList(Session["Category"].ToString()).Count + ")";

            BindRepeater();
        }
Esempio n. 2
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            ms    = MeliService.GetService();
            sites = ms.GetSites();

            if (!IsPostBack)
            {
                populateDropDownListSites();
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ms = MeliService.GetService();

            string product = Request ["productID"].ToString();

            this.Item = ms.GetProduct(product);

            this.customersRepeater.DataSource = Item.pictures;

            this.customersRepeater.DataBind();
        }
Esempio n. 4
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            ms = MeliService.GetService();
            string sessionSearch = (string)Session["Category"];

            if (string.IsNullOrEmpty(sessionSearch))
            {
                Response.Redirect("/Home.aspx");
            }
        }
Esempio n. 5
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);


            string url   = Request.Url.AbsoluteUri;
            string param = Request["code"];

            if (param != null)
            {
                autentication = param;
                clientID      = param.Split('-')[2];
            }

            ms = MeliService.GetService();
        }
Esempio n. 6
0
        //public string secret_key = "kVDEhEwtNkByjnONdLvfMlC90tno1LsR";
        //public long appID = 4704572964736151;

        protected void Page_Load(object sender, EventArgs e)
        {
            ms = MeliService.GetService();
        }