(file,
session = None)
| 307 | |
| 308 | |
| 309 | def build_packet(file, |
| 310 | session = None): |
| 311 | if file.type == "video": |
| 312 | return build_video_packet(file, session) |
| 313 | |
| 314 | if file.type == "geospatial": |
| 315 | return build_geopacket(file, session) |
| 316 | |
| 317 | if file.type == "image": |
| 318 | return build_image_packet(file, session) |
| 319 | |
| 320 | if file.type == "text": |
| 321 | return build_text_packet(file, session) |
| 322 | |
| 323 | if file.type == "sensor_fusion": |
| 324 | return build_sensor_fusion_packet(file, session) |
| 325 | |
| 326 | if file.type == "compound": |
| 327 | return build_compound_file_packet(file, session) |
| 328 | |
| 329 | |
| 330 | def build_compound_file_packet(file: File, session: Session): |
no test coverage detected