(event: EventType)
| 171 | } |
| 172 | |
| 173 | function toFIRDataEventType(event: EventType): FIRDataEventType { |
| 174 | switch (event) { |
| 175 | case 'child_added': |
| 176 | return FIRDataEventType.ChildAdded; |
| 177 | case 'child_changed': |
| 178 | return FIRDataEventType.ChildChanged; |
| 179 | case 'child_moved': |
| 180 | return FIRDataEventType.ChildMoved; |
| 181 | case 'child_removed': |
| 182 | return FIRDataEventType.ChildRemoved; |
| 183 | case 'value': |
| 184 | return FIRDataEventType.Value; |
| 185 | } |
| 186 | } |
| 187 | |
| 188 | export class Query implements IQuery { |
| 189 | _native: FIRDatabaseQuery; |