| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 service TodoService { | 5 service TodoService { |
| 6 | 6 |
| 7 void createItem(BoxString* title); | 7 void createItem(BoxString* title); |
| 8 | 8 |
| 9 // toggle the done flag for the item identified by 'id' | 9 // toggle the done flag for the item identified by 'id' |
| 10 void toggle(int32 id); | 10 void toggle(int32 id); |
| 11 | 11 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 struct BoxString { | 23 struct BoxString { |
| 24 String s; | 24 String s; |
| 25 } | 25 } |
| 26 | 26 |
| 27 struct TodoItem { | 27 struct TodoItem { |
| 28 String title; | 28 String title; |
| 29 bool done; | 29 bool done; |
| 30 int32 id; // id is unique to each item. | 30 int32 id; // id is unique to each item. |
| 31 } | 31 } |
| OLD | NEW |