func createOrderModalBySDK() *slack.ModalViewRequest {
	// Text section
	shopText := slack.NewTextBlockObject("mrkdwn", ":hamburger: *Hey! Thank you for choosing us! We'll promise you to be full.*", false, false)
	shopTextSection := slack.NewSectionBlock(shopText, nil, nil)

	// Divider
	dividerBlock := slack.NewDividerBlock()

	// Input with radio buttons
	optHamburgerText := slack.NewTextBlockObject("plain_text", burgers["hamburger"] /*"Hamburger"*/, false, false)
	optHamburgerObj := slack.NewOptionBlockObject("hamburger", optHamburgerText)

	optCheeseText := slack.NewTextBlockObject("plain_text", burgers["cheese_burger"] /*"Cheese burger"*/, false, false)
	optCheeseObj := slack.NewOptionBlockObject("cheese_burger", optCheeseText)

	optBLTText := slack.NewTextBlockObject("plain_text", burgers["blt_burger"] /*"BLT burger"*/, false, false)
	optBLTObj := slack.NewOptionBlockObject("blt_burger", optBLTText)

	optBigText := slack.NewTextBlockObject("plain_text", burgers["big_burger"] /*"Big burger"*/, false, false)
	optBigObj := slack.NewOptionBlockObject("big_burger", optBigText)

	optKingText := slack.NewTextBlockObject("plain_text", burgers["king_burger"] /*"King burger"*/, false, false)
	optKingObj := slack.NewOptionBlockObject("king_burger", optKingText)

	menuElement := slack.NewRadioButtonsBlockElement("action_id_menu", optHamburgerObj, optCheeseObj, optBLTObj, optBigObj, optKingObj)

	menuLabel := slack.NewTextBlockObject("plain_text", "Which one you want to have?", false, false)
	menuInput := slack.NewInputBlock("block_id_menu", menuLabel, menuElement)

	// Input with static_select
	optWellDoneText := slack.NewTextBlockObject("plain_text", "well done", false, false)
	optWellDoneObj := slack.NewOptionBlockObject("well_done", optWellDoneText)

	optMediumText := slack.NewTextBlockObject("plain_text", "medium", false, false)
	optMediumObj := slack.NewOptionBlockObject("medium", optMediumText)

	optRareText := slack.NewTextBlockObject("plain_text", "rare", false, false)
	optRareObj := slack.NewOptionBlockObject("rare", optRareText)

	optBlueText := slack.NewTextBlockObject("plain_text", "blue", false, false)
	optBlueObj := slack.NewOptionBlockObject("blue", optBlueText)

	steakInputElement := slack.NewOptionsSelectBlockElement("static_select", nil, "action_id_steak", optWellDoneObj, optMediumObj, optRareObj, optBlueObj)

	steakLabel := slack.NewTextBlockObject("plain_text", "How do you like your steak?", false, false)
	steakInput := slack.NewInputBlock("block_id_steak", steakLabel, steakInputElement)

	// Input with plain_text_input
	noteText := slack.NewTextBlockObject("plain_text", "Anything else you want to tell us?", false, false)
	noteInputElement := slack.NewPlainTextInputBlockElement(nil, "action_id_note")
	noteInputElement.Multiline = true
	noteInput := slack.NewInputBlock("block_id_note", noteText, noteInputElement)
	noteInput.Optional = true

	// Blocks
	blocks := slack.Blocks{
		BlockSet: []slack.Block{
			shopTextSection,
			dividerBlock,
			menuInput,
			steakInput,
			noteInput,
		},
	}

	// ModalView
	modal := slack.ModalViewRequest{
		Type:   slack.ViewType("modal"),
		Title:  slack.NewTextBlockObject("plain_text", "Hungryman Hamburgers", false, false),
		Close:  slack.NewTextBlockObject("plain_text", "Cancel", false, false),
		Submit: slack.NewTextBlockObject("plain_text", "Submit", false, false),
		Blocks: blocks,
	}

	return &modal
}
// createOrderModalBySDK makes a modal view by using slack-go/slack
createOrderModalBySDK makes a modal view by using slack-go/slack
// createOrderModalBySDK makes a modal view by using slack - go / slack
func createOrderModalBySDK() *slack.ModalViewRequest {
	shopText := slack.NewTextBlockObject("mrkdwn", ":hamburger: *Hey! Thank you for choosing us! We'll promise you to be full.*", false, false)
	shopTextSection := slack.NewSectionBlock(shopText, nil, nil)
	dividerBlock := slack.NewDividerBlock()
	optHamburgerText := slack.NewTextBlockObject("plain_text", burgers["hamburger"] , false, false)
	optHamburgerObj := slack.NewOptionBlockObject("hamburger", optHamburgerText)
	optCheeseText := slack.NewTextBlockObject("plain_text", burgers["cheese_burger"] , false, false)
	optCheeseObj := slack.NewOptionBlockObject("cheese_burger", optCheeseText)
	optBLTText := slack.NewTextBlockObject("plain_text", burgers["blt_burger"] , false, false)
	optBLTObj := slack.NewOptionBlockObject("blt_burger", optBLTText)
	optBigText := slack.NewTextBlockObject("plain_text", burgers["big_burger"] , false, false)
	optBigObj := slack.NewOptionBlockObject("big_burger", optBigText)
	optKingText := slack.NewTextBlockObject("plain_text", burgers["king_burger"] , false, false)
	optKingObj := slack.NewOptionBlockObject("king_burger", optKingText)
	menuElement := slack.NewRadioButtonsBlockElement("action_id_menu", optHamburgerObj, optCheeseObj, optBLTObj, optBigObj, optKingObj)
	menuLabel := slack.NewTextBlockObject("plain_text", "Which one you want to have?", false, false)
	menuInput := slack.NewInputBlock("block_id_menu", menuLabel, menuElement)
	optWellDoneText := slack.NewTextBlockObject("plain_text", "well done", false, false)
	optWellDoneObj := slack.NewOptionBlockObject("well_done", optWellDoneText)
	optMediumText := slack.NewTextBlockObject("plain_text", "medium", false, false)
	optMediumObj := slack.NewOptionBlockObject("medium", optMediumText)
	optRareText := slack.NewTextBlockObject("plain_text", "rare", false, false)
	optRareObj := slack.NewOptionBlockObject("rare", optRareText)
	optBlueText := slack.NewTextBlockObject("plain_text", "blue", false, false)
	optBlueObj := slack.NewOptionBlockObject("blue", optBlueText)
	steakInputElement := slack.NewOptionsSelectBlockElement("static_select", nil, "action_id_steak", optWellDoneObj, optMediumObj, optRareObj, optBlueObj)
	steakLabel := slack.NewTextBlockObject("plain_text", "How do you like your steak?", false, false)
	steakInput := slack.NewInputBlock("block_id_steak", steakLabel, steakInputElement)
	noteText := slack.NewTextBlockObject("plain_text", "Anything else you want to tell us?", false, false)
	noteInputElement := slack.NewPlainTextInputBlockElement(nil, "action_id_note")
	noteInputElement.Multiline = true
	noteInput := slack.NewInputBlock("block_id_note", noteText, noteInputElement)
	noteInput.Optional = true
	blocks := slack.Blocks{
		BlockSet: []slack.Block{
			shopTextSection,
			dividerBlock,
			menuInput,
			steakInput,
			noteInput,
		},
	}
	modal := slack.ModalViewRequest{
		Type:   slack.ViewType("modal"),
		Title:  slack.NewTextBlockObject("plain_text", "Hungryman Hamburgers", false, false),
		Close:  slack.NewTextBlockObject("plain_text", "Cancel", false, false),
		Submit: slack.NewTextBlockObject("plain_text", "Submit", false, false),
		Blocks: blocks,
	}
	return &modal
}
func createOrderModalBySDK ( ) * slack . ModalViewRequest { shopText := slack . NewTextBlockObject ( " " , " " , false , false ) shopTextSection := slack . NewSectionBlock ( shopText , nil , nil ) dividerBlock := slack . NewDividerBlock ( ) optHamburgerText := slack . NewTextBlockObject ( " " , burgers [ " " ] , false , false ) optHamburgerObj := slack . NewOptionBlockObject ( " " , optHamburgerText ) optCheeseText := slack . NewTextBlockObject ( " " , burgers [ " " ] , false , false ) optCheeseObj := slack . NewOptionBlockObject ( " " , optCheeseText ) optBLTText := slack . NewTextBlockObject ( " " , burgers [ " " ] , false , false ) optBLTObj := slack . NewOptionBlockObject ( " " , optBLTText ) optBigText := slack . NewTextBlockObject ( " " , burgers [ " " ] , false , false ) optBigObj := slack . NewOptionBlockObject ( " " , optBigText ) optKingText := slack . NewTextBlockObject ( " " , burgers [ " " ] , false , false ) optKingObj := slack . NewOptionBlockObject ( " " , optKingText ) menuElement := slack . NewRadioButtonsBlockElement ( " " , optHamburgerObj , optCheeseObj , optBLTObj , optBigObj , optKingObj ) menuLabel := slack . NewTextBlockObject ( " " , " " , false , false ) menuInput := slack . NewInputBlock ( " " , menuLabel , menuElement ) optWellDoneText := slack . NewTextBlockObject ( " " , " " , false , false ) optWellDoneObj := slack . NewOptionBlockObject ( " " , optWellDoneText ) optMediumText := slack . NewTextBlockObject ( " " , " " , false , false ) optMediumObj := slack . NewOptionBlockObject ( " " , optMediumText ) optRareText := slack . NewTextBlockObject ( " " , " " , false , false ) optRareObj := slack . NewOptionBlockObject ( " " , optRareText ) optBlueText := slack . NewTextBlockObject ( " " , " " , false , false ) optBlueObj := slack . NewOptionBlockObject ( " " , optBlueText ) steakInputElement := slack . NewOptionsSelectBlockElement ( " " , nil , " " , optWellDoneObj , optMediumObj , optRareObj , optBlueObj ) steakLabel := slack . NewTextBlockObject ( " " , " " , false , false ) steakInput := slack . NewInputBlock ( " " , steakLabel , steakInputElement ) noteText := slack . NewTextBlockObject ( " " , " " , false , false ) noteInputElement := slack . NewPlainTextInputBlockElement ( nil , " " ) noteInputElement . Multiline = true noteInput := slack . NewInputBlock ( " " , noteText , noteInputElement ) noteInput . Optional = true blocks := slack . Blocks { BlockSet : [ ] slack . Block { shopTextSection , dividerBlock , menuInput , steakInput , noteInput , } , } modal := slack . ModalViewRequest { Type : slack . ViewType ( " " ) , Title : slack . NewTextBlockObject ( " " , " " , false , false ) , Close : slack . NewTextBlockObject ( " " , " " , false , false ) , Submit : slack . NewTextBlockObject ( " " , " " , false , false ) , Blocks : blocks , } return & modal }
createOrderModalBySDK makes a modal view by using slack-go/slack
createOrderModalBySDK makes a modal view by using slack - go / slack
// Text section // Divider // Input with radio buttons /*"Hamburger"*/ /*"Cheese burger"*/ /*"BLT burger"*/ /*"Big burger"*/ /*"King burger"*/ // Input with static_select // Input with plain_text_input // Blocks // ModalView