OLD | NEW |
1 // WARNING: DO NOT EDIT. This file was generated by a program. | 1 // WARNING: DO NOT EDIT. This file was generated by a program. |
2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. | 2 // See $MOJO_SDK/tools/bindings/mojom_bindings_generator.py. |
3 | 3 |
4 library authentication_impl_db_mojom; | 4 library authentication_impl_db_mojom; |
5 import 'package:mojo/bindings.dart' as bindings; | 5 import 'package:mojo/bindings.dart' as bindings; |
6 | 6 |
7 | 7 |
8 | 8 |
9 | 9 |
10 class Db extends bindings.Struct { | 10 class Db extends bindings.Struct { |
11 static const List<bindings.StructDataHeader> kVersions = const [ | 11 static const List<bindings.StructDataHeader> kVersions = const [ |
12 const bindings.StructDataHeader(24, 0) | 12 const bindings.StructDataHeader(24, 0) |
13 ]; | 13 ]; |
14 int version = 0; | 14 int version = 0; |
15 Map<String, String> lastSelectedAccounts = null; | 15 Map<String, String> lastSelectedAccounts = null; |
16 | 16 |
17 Db() : super(kVersions.last.size); | 17 Db() : super(kVersions.last.size); |
18 | 18 |
| 19 Db.init( |
| 20 int this.version, |
| 21 Map<String, String> this.lastSelectedAccounts |
| 22 ) : super(kVersions.last.size); |
| 23 |
19 static Db deserialize(bindings.Message message) { | 24 static Db deserialize(bindings.Message message) { |
20 var decoder = new bindings.Decoder(message); | 25 var decoder = new bindings.Decoder(message); |
21 var result = decode(decoder); | 26 var result = decode(decoder); |
22 if (decoder.excessHandles != null) { | 27 if (decoder.excessHandles != null) { |
23 decoder.excessHandles.forEach((h) => h.close()); | 28 decoder.excessHandles.forEach((h) => h.close()); |
24 } | 29 } |
25 return result; | 30 return result; |
26 } | 31 } |
27 | 32 |
28 static Db decode(bindings.Decoder decoder0) { | 33 static Db decode(bindings.Decoder decoder0) { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 Map toJson() { | 143 Map toJson() { |
139 Map map = new Map(); | 144 Map map = new Map(); |
140 map["version"] = version; | 145 map["version"] = version; |
141 map["lastSelectedAccounts"] = lastSelectedAccounts; | 146 map["lastSelectedAccounts"] = lastSelectedAccounts; |
142 return map; | 147 return map; |
143 } | 148 } |
144 } | 149 } |
145 | 150 |
146 | 151 |
147 | 152 |
OLD | NEW |