Пример #1
0
        public async Task GetShopRoles()
        {
            var shopRoleHandler = new ShopRoleHandler();

            shopRoleHandler.Initialize(Context);

            await shopRoleHandler.GetAllShopRoles();
        }
Пример #2
0
        public async Task BuyRole(SocketRole role)
        {
            var shopRoleHandler = new ShopRoleHandler();

            shopRoleHandler.Initialize(Context);

            await shopRoleHandler.BuyItem(role);
        }
Пример #3
0
        public async Task ShopRoleInfo(SocketRole role)
        {
            var shopRoleHandler = new ShopRoleHandler();

            shopRoleHandler.Initialize(Context);

            await shopRoleHandler.GetShopRoleInfo(role);
        }
Пример #4
0
        public async Task AddShopRole(SocketRole role, int cost, int level = 0)
        {
            var shopRoleHandler = new ShopRoleHandler();

            shopRoleHandler.Initialize(Context);

            await shopRoleHandler.AddShopRole(role, cost, level);
        }