• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

net-daemon / netdaemon / 6682312588

29 Oct 2023 08:42AM UTC coverage: 79.548% (-1.2%) from 80.706%
6682312588

Pull #958

github

web-flow
Merge 25460d703 into 80d8bf8e2
Pull Request #958: .NET 8 version 4 release

803 of 1143 branches covered (0.0%)

Branch coverage included in aggregate %.

108 of 108 new or added lines in 17 files covered. (100.0%)

2896 of 3507 relevant lines covered (82.58%)

50.12 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/HassModel/NetDeamon.HassModel/Entities/Core/MediaPlayerAttributesBase.cs
1
namespace NetDaemon.HassModel.Entities.Core;
2
#pragma warning disable CS1591
3
#pragma warning disable CA1056
4

5
[Obsolete("Usage of attribute base classes are deprecated, default meta data is now used to replace it")]
6
public record MediaPlayerAttributesBase
×
7
{
8
    [JsonPropertyName("app_id")]
9
    public string? AppId { get; init; }
×
10

11
    [JsonPropertyName("app_name")]
12
    public string? AppName { get; init; }
×
13

14
    /// <summary>
15
    /// Type of media player.
16
    /// </summary>
17
    [JsonPropertyName("device_class")]
18
    public string? DeviceClass { get; init; }
×
19

20
    /// <summary>
21
    /// Entity ids of the entities in the media player group. Null if not a group.
22
    /// </summary>
23
    [JsonPropertyName("entity_id")]
24
    public IReadOnlyList<string>? EntityId { get; init; }
×
25

26
    /// <summary>
27
    /// URL of the picture for the entity.
28
    /// </summary>
29
    [JsonPropertyName("entity_picture")]
30
    public string? EntityPicture { get; init; }
×
31

32
    [JsonPropertyName("entity_picture_local")]
33
    public string? EntityPictureLocal { get; init; }
×
34

35
    /// <summary>
36
    /// Name of the media player as displayed in the UI.
37
    /// </summary>
38
    [JsonPropertyName("friendly_name")]
39
    public string? FriendlyName { get; init; }
×
40

41
    [JsonPropertyName("icon")]
42
    public string? Icon { get; init; }
×
43

44
    [JsonPropertyName("is_volume_muted")]
45
    public bool? IsVolumeMuted { get; init; }
×
46

47
    [JsonPropertyName("media_album_name")]
48
    public string? MediaAlbumName { get; init; }
×
49
    
50
    /// <summary>
51
    /// URL that represents the current image.
52
    /// </summary>
53
    [JsonPropertyName("media_image_url")]
54
    public string? MediaImageUrl { get; init; }
×
55

56
    [JsonPropertyName("media_artist")]
57
    public string? MediaArtist { get; init; }
×
58

59
    [JsonPropertyName("media_content_id")]
60
    public string? MediaContentId { get; init; }
×
61

62
    [JsonPropertyName("media_content_type")]
63
    public string? MediaContentType { get; init; }
×
64

65
    [JsonPropertyName("media_duration")]
66
    public double? MediaDuration { get; init; }
×
67

68
    [JsonPropertyName("media_position")]
69
    public double? MediaPosition { get; init; }
×
70

71
    [JsonPropertyName("media_position_updated_at")]
72
    public string? MediaPositionUpdatedAt { get; init; }
×
73

74
    [JsonPropertyName("media_title")]
75
    public string? MediaTitle { get; init; }
×
76

77
    [JsonPropertyName("media_track")]
78
    public object? MediaTrack { get; init; }
×
79

80
    [JsonPropertyName("repeat")]
81
    public string? Repeat { get; init; }
×
82

83
    [JsonPropertyName("shuffle")]
84
    public bool? Shuffle { get; init; }
×
85
    
86
    /// <summary>
87
    /// The current sound mode of the media player
88
    /// </summary>
89
    [JsonPropertyName("sound_mode")]
90
    public string? SoundMode { get; init; }
×
91
    
92
    /// <summary>
93
    /// Dynamic list of available sound modes (set by platform, empty means sound mode not supported)
94
    /// </summary>
95
    [JsonPropertyName("sound_mode_list")]
96
    public IReadOnlyList<string>? SoundModeList { get; init; }
×
97

98
    /// <summary>
99
    /// The currently selected input source for the media player.
100
    /// </summary>
101
    [JsonPropertyName("source")]
102
    public string? Source { get; init; }
×
103

104
    /// <summary>
105
    /// The list of possible input sources for the media player. (This list should contain human readable names, suitable for frontend display)
106
    /// </summary>
107
    [JsonPropertyName("source_list")]
108
    public IReadOnlyList<string>? SourceList { get; init; }
×
109

110
    [JsonPropertyName("supported_features")]
111
    public double? SupportedFeatures { get; init; }
×
112

113
    /// <summary>
114
    /// Float for volume level between 0..1
115
    /// </summary>
116
    [JsonPropertyName("volume_level")]
117
    public double? VolumeLevel { get; init; }
×
118
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc