LCOV - code coverage report
Current view: top level - entities/media_metadata - photo_media_metadata.dart Coverage Total Hit
Test: lcov_cleaned.info Lines: 0.0 % 13 0
Test Date: 2025-06-20 10:50:47 Functions: - 0 0

            Line data    Source code
       1              : import 'package:flutter_chrome_cast/lib.dart';
       2              : 
       3              : /// Describes a photo media artifact.
       4              : class GoogleCastPhotoMediaMetadata extends GoogleCastMediaMetadata {
       5              :   /// Creates a photo media metadata instance.
       6            0 :   GoogleCastPhotoMediaMetadata({
       7              :     this.title,
       8              :     this.artist,
       9              :     this.location,
      10              :     this.latitude,
      11              :     this.longitude,
      12              :     this.width,
      13              :     this.height,
      14              :     this.creationDateTime,
      15            0 :   }) : super(metadataType: GoogleCastMediaMetadataType.photoMediaMetadata);
      16              : 
      17              :   ///string     optional Title of the photograph.
      18              :   /// Player can independently retrieve title
      19              :   ///  using content_id or it can be given by the sender in the Load message
      20              :   final String? title;
      21              : 
      22              :   ///string     optional Name of the photographer.
      23              :   /// Player can independently retrieve artist
      24              :   /// using content_id or it can be given by
      25              :   /// the sender in the Load message
      26              :   final String? artist;
      27              : 
      28              :   ///string     optional Verbal location where
      29              :   /// the photograph was taken; for example,
      30              :   /// "Madrid, Spain." Player can independently
      31              :   ///  retrieve location using content_id or it
      32              :   ///  can be given by the sender in the Load message
      33              :   final String? location;
      34              : 
      35              :   ///double     optional Geographical latitude
      36              :   /// value for the location where the
      37              :   /// photograph was taken. Player can independently
      38              :   ///  retrieve latitude using content_id or
      39              :   /// it can be given by the sender in the Load message
      40              :   final double? latitude;
      41              : 
      42              :   ///double     optional Geographical longitude
      43              :   ///value for the location where the photograph
      44              :   /// was taken. Player can independently retrieve
      45              :   /// longitude using content_id or it can be
      46              :   ///  given by the sender in the Load message
      47              :   final double? longitude;
      48              : 
      49              :   ///integer    optional Width in pixels of the photograph.
      50              :   /// Player can independently retrieve width using
      51              :   ///  content_id or it can be given by the sender
      52              :   ///  in the Load message
      53              :   final int? width;
      54              : 
      55              :   ///integer    optional Height in pixels of the photograph.
      56              :   /// Player can independently retrieve height using
      57              :   ///  content_id or it can be given by the sender
      58              :   ///  in the Load message
      59              :   final int? height;
      60              : 
      61              :   ///string (ISO 8601)  optional ISO 8601 date
      62              :   ///and time this photograph was taken. Player
      63              :   /// can independently retrieve creationDateTime
      64              :   ///  using content_id or it can be given by
      65              :   /// the sender in the Load message
      66              :   final DateTime? creationDateTime;
      67              : 
      68            0 :   @override
      69              :   Map<String, dynamic> toMap() {
      70            0 :     return {
      71            0 :       'metadataType': metadataType.value,
      72            0 :       'title': title,
      73            0 :       'artist': artist,
      74            0 :       'location': location,
      75            0 :       'latitude': latitude,
      76            0 :       'longitude': longitude,
      77            0 :       'width': width,
      78            0 :       'height': height,
      79            0 :       'creationDateTime': creationDateTime?.millisecondsSinceEpoch,
      80              :     };
      81              :   }
      82              : }
        

Generated by: LCOV version 2.3.1-1