Skip to content

Commit 057dc56

Browse files
authored
Merge pull request #83 from line/feature/quick_reply_format
Change code format of kitchensink's quick_reply feature
2 parents abf0ee9 + 3073d7a commit 057dc56

File tree

1 file changed

+41
-41
lines changed

1 file changed

+41
-41
lines changed

examples/kitchensink/app.rb

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -369,66 +369,66 @@ def handle_message(event)
369369
type: 'text',
370370
text: '[QUICK REPLY]',
371371
quickReply: {
372-
"items": [
372+
items: [
373373
{
374-
"type": "action",
375-
"imageUrl": QUICK_REPLY_ICON_URL,
376-
"action": {
377-
"type": "message",
378-
"label": "Sushi",
379-
"text": "Sushi"
374+
type: "action",
375+
imageUrl: QUICK_REPLY_ICON_URL,
376+
action: {
377+
type: "message",
378+
label: "Sushi",
379+
text: "Sushi"
380380
}
381381
},
382382
{
383-
"type": "action",
384-
"action": {
385-
"type": "location",
386-
"label": "Send location"
383+
type: "action",
384+
action: {
385+
type: "location",
386+
label: "Send location"
387387
}
388388
},
389389
{
390-
"type": "action",
391-
"imageUrl": QUICK_REPLY_ICON_URL,
392-
"action": {
393-
"type": "camera",
394-
"label": "Open camera",
390+
type: "action",
391+
imageUrl: QUICK_REPLY_ICON_URL,
392+
action: {
393+
type: "camera",
394+
label: "Open camera",
395395
}
396396
},
397397
{
398-
"type": "action",
399-
"imageUrl": QUICK_REPLY_ICON_URL,
400-
"action": {
401-
"type": "cameraRoll",
402-
"label": "Open cameraRoll",
398+
type: "action",
399+
imageUrl: QUICK_REPLY_ICON_URL,
400+
action: {
401+
type: "cameraRoll",
402+
label: "Open cameraRoll",
403403
}
404404
},
405405
{
406-
"type": "action",
407-
"action": {
408-
"type": "postback",
409-
"label": "buy",
410-
"data": "action=buy&itemid=111",
411-
"text": "buy",
406+
type: "action",
407+
action: {
408+
type: "postback",
409+
label: "buy",
410+
data: "action=buy&itemid=111",
411+
text: "buy",
412412
}
413413
},
414414
{
415-
"type": "action",
416-
"action": {
417-
"type": "message",
418-
"label": "Yes",
419-
"text": "Yes"
415+
type: "action",
416+
action: {
417+
type: "message",
418+
label: "Yes",
419+
text: "Yes"
420420
}
421421
},
422422
{
423-
"type": "action",
424-
"action": {
425-
"type":"datetimepicker",
426-
"label":"Select date",
427-
"data":"storeId=12345",
428-
"mode":"datetime",
429-
"initial":"2017-12-25t00:00",
430-
"max":"2018-01-24t23:59",
431-
"min":"2017-12-25t00:00"
423+
type: "action",
424+
action: {
425+
type: "datetimepicker",
426+
label: "Select date",
427+
data: "storeId=12345",
428+
mode: "datetime",
429+
initial: "2017-12-25t00:00",
430+
max: "2018-01-24t23:59",
431+
min: "2017-12-25t00:00"
432432
}
433433
},
434434
],

0 commit comments

Comments
 (0)