public async Task RegisterBingoMenuAsync() { var menus = await _client.GetRichMenuListAsync(); foreach (var menu in menus) { await _client.DeleteRichMenuAsync(menu.RichMenuId); } await CreateMenuAsync(MENU_START, Properties.Resources.menu_start, new ActionArea() { Action = new MessageTemplateAction("ゲームを開始する", "開始"), Bounds = new ImagemapArea(0, 0, BUTTON_M_WIDTH, BUTTON_HEIGHT) }, new ActionArea() { Action = new MessageTemplateAction("ゲームに参加する", "参加"), Bounds = new ImagemapArea(BUTTON_M_WIDTH, 0, BUTTON_M_WIDTH, BUTTON_HEIGHT) }, new ActionArea() { Action = new PostbackTemplateAction("ヒント", POSTBACK_DATA_START_MENU_HINT), Bounds = new ImagemapArea(BUTTON_M_WIDTH * 2, 0, BUTTON_M_WIDTH, BUTTON_HEIGHT) }); await CreateMenuAsync(MENU_GAME, Properties.Resources.menu_game, new ActionArea() { Action = new MessageTemplateAction("番号を引く", "ドロー"), Bounds = new ImagemapArea(0, 0, BUTTON_L_WIDTH, BUTTON_HEIGHT) }, new ActionArea() { Action = new MessageTemplateAction("ゲームを終了する", "終了"), Bounds = new ImagemapArea(BUTTON_L_WIDTH, 0, BUTTON_S_WIDTH, BUTTON_HEIGHT) }, new ActionArea() { Action = new PostbackTemplateAction("ヒント", POSTBACK_DATA_GAME_MENU_HINT), Bounds = new ImagemapArea(BUTTON_L_WIDTH + BUTTON_S_WIDTH, 0, BUTTON_S_WIDTH, BUTTON_HEIGHT) }); await CreateMenuAsync(MENU_CARD, Properties.Resources.menu_card, new ActionArea() { Action = new MessageTemplateAction("カードを更新する", "カード"), Bounds = new ImagemapArea(0, 0, BUTTON_L_WIDTH, BUTTON_HEIGHT) }, new ActionArea() { Action = new MessageTemplateAction("ゲームから抜ける", "終了"), Bounds = new ImagemapArea(BUTTON_L_WIDTH, 0, BUTTON_S_WIDTH, BUTTON_HEIGHT) }, new ActionArea() { Action = new PostbackTemplateAction("ヒント", POSTBACK_DATA_CARD_MENU_HINT), Bounds = new ImagemapArea(BUTTON_L_WIDTH + BUTTON_S_WIDTH, 0, BUTTON_S_WIDTH, BUTTON_HEIGHT) }); }