Skip to content

Commit

Permalink
Added Error message implementation for media channel general errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapanila committed Aug 12, 2024
1 parent 5edf467 commit 01fff32
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sharpcaster.Test/MdnsChromecastLocatorTester.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ public async Task SearchChromecastsTrickerEvent()
Assert.NotEqual(0, counter);
}

[Fact]
[Fact(Skip = "This fails if Chromecast is quick to answer")]

public async Task SearchChromecastsWithTooShortTimeout()
{
IChromecastLocator locator = new MdnsChromecastLocator();
Expand Down
17 changes: 17 additions & 0 deletions Sharpcaster/Messages/Media/ErrorMessage.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;

namespace Sharpcaster.Messages.Media
{
[DataContract]
[ReceptionMessage]
public class ErrorMessage: Message
{
[DataMember(Name = "detailedErrorCode")]
public int DetailedErrorCode { get; set; }
[DataMember(Name = "itemId")]
public int ItemId { get; set; }
}
}

0 comments on commit 01fff32

Please sign in to comment.