과제/모바일인지/2013/시립대 JSON
Retired DISLab
예제
TODO/Conflict JSON Example TODO 예시 { "events":{ "num_of_event" : 2, "event":{ "event_id" : 1 "event_message":"아들 박OO님의 생일이 O일 남았습니다", "todo_interaction_list":{ "num_of_cards" : 2, "card":{ "card_id" : 1, "message" : "생일파티 장소는 결정하셨습니까?", "interaction_component" : { "interaction_type" : "button_list", "component_property":{ "num_of_buttons" : 2, "button_text_1" : "예", "button_text_2" : "아니오" } } }, "card":{ "card_id" : 2, "message" : "선물을 준비하시겠습니까?", "interaction_component" : { "interaction_type" : "button_list", "component_property":{ "num_of_buttons" : 2, "button_text_1" : "예", "button_text_2" : "아니오" } } } } }, "event":{ "event_id" : 2, "event_message" : "부산에서 열리는 개발자 컨퍼런스가 2주일 남았습니다", "todo_interaction_list" :{ "num_of_cards" : 2, "card":{ "card_id" : 1, "message" : "교통편은 예약하셨습니까?", "interaction_component" : { "interaction_type" : "button_list", "component_property":{ "num_of_buttons" : 2, "button_text_1" : "예", "button_text_2" : "아니오" } } }, "card":{ "card_id" : 2, "message" : "숙소를 예약하시겠습니까?", "interaction_component" : { "interaction_type" : "button_list", "component_property":{ "num_of_buttons" : 2, "button_text_1" : "예", "button_text_2" : "아니오" } } } } } } } TODO, interaction component 예시 - item_list "interaction_component":{ "interaction_type" : "item_list", "component_property":{ "num_of_items" : 4, "item_1" : "기차", "item_2" : "항공기", "item_3" : "선박", "item_4" : "자가용", "button_text" : "결정" } } TODO, interaction component 예시 - text_field "interaction_component":{ "interaction_type" : "text_field", "component_property":{ "button_text" : "입력" } } TODO, interaction component 예시 - check_box "interaction_component":{ "interaction_type" : "check_box" "component_property":{ "num_of_items" : 3, "item_1" : "호텔", ... } } Conflicts 예시 { "conflicts":{ "num_of_conflicts" : 3 "conflict":{ "conflict_type":"alert", "schedule_1":{ "subject" : "개발부 실무자 회의", "date" : "08/06", "start_time" : "10:00", "end_time" : "13:00", "location" : "서울시립대학교" } "schedule_2":{ "subject" : "치과 예약", "date" : "08/06", "start_time" : "14:00", "end_time" : "15:00", "location" : "천호 OO치과" } } "conflict":{ "conflict_type":"priority", "prior_schedule":{ "subject" : "가족 회식", "date" : "08/15", "start_time" : "18:00", "end_time" : "20:00", "location" : "VIPS 올림픽공원점" } "posterior_schedule":{ "subject" : "연구실 미팅", "date" : "08/15", "start_time" : "17:30", "end_time" : "20:00", "location" : "연구실" } } "conflict":{ ... } } }
Schema
TODO/Conflict card JSON format TODO { "events":{ "num_of_event" : INTEGER, "event":{ "event_id" : INTEGER "event_message": STRING, "todo_interaction_list":{ "num_of_cards" : INTEGER, "card":{ "card_id" : INTEGER, "message" : STRING, "interaction_component" : { "interaction_type" : STRING, "component_property":{ ... } } } } }, ... } } TODO, component_property - type별 정리 type -- button_list "component_property"{ "num_of_buttons" : INTEGER, "button_text_1" : STRING, "button_text_2" : STRING, ... } type -- item_list "component_property":{ "num_of_items" : INTEGER, "item_1" : STRING, "item_2" : STRING, ... "button_text" : STRING } type -- text_field "component_property":{ "button_text" : STRING } type -- check_box "component_property":{ "num_of_items" : INTEGER, "item_1" : STRING, ... } Conflicts { "conflicts":{ "num_of_conflicts" : INTEGER "conflict":{ "conflict_type":STRING, /* conflict_type이 warning 혹은 alert인 경우 */ "schedule_1":{ "subject" : STRING, "date" : "MM/DD", "start_time" : "HH:MM", "end_time" : "HH:MM", "location" : STRING } "schedule_2":{ ... /* schema는 schedule_1과 동일 */ } } "conflict":{ "conflict_type" : "priority", "prior_schedule":{ "subject" : STRING, "date" : "MM/DD", "start_time" : "HH:MM", "end_time" : "HH:MM", "location" : STRING } "posterior_schedule":{ ... /* schema는 prior_schedule과 동일 */ } } } }