2020-01-22 20:00:07 +00:00
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
2019-01-13 19:16:19 +00:00
|
|
|
using System.Collections.Generic;
|
2019-01-06 20:50:43 +00:00
|
|
|
using Emby.Dlna.Common;
|
2016-10-29 22:34:54 +00:00
|
|
|
using Emby.Dlna.Service;
|
2016-10-29 22:22:20 +00:00
|
|
|
|
2016-10-29 22:34:54 +00:00
|
|
|
namespace Emby.Dlna.MediaReceiverRegistrar
|
2016-10-29 22:22:20 +00:00
|
|
|
{
|
|
|
|
public class MediaReceiverRegistrarXmlBuilder
|
|
|
|
{
|
|
|
|
public string GetXml()
|
|
|
|
{
|
2020-08-20 15:01:04 +00:00
|
|
|
return new ServiceXmlBuilder().GetXml(
|
|
|
|
new ServiceActionListBuilder().GetActions(),
|
2016-10-29 22:22:20 +00:00
|
|
|
GetStateVariables());
|
|
|
|
}
|
|
|
|
|
2019-01-06 20:50:43 +00:00
|
|
|
private static IEnumerable<StateVariable> GetStateVariables()
|
2016-10-29 22:22:20 +00:00
|
|
|
{
|
|
|
|
var list = new List<StateVariable>();
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "AuthorizationGrantedUpdateID",
|
|
|
|
DataType = "ui4",
|
|
|
|
SendsEvents = true
|
|
|
|
});
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "A_ARG_TYPE_DeviceID",
|
|
|
|
DataType = "string",
|
|
|
|
SendsEvents = false
|
|
|
|
});
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "AuthorizationDeniedUpdateID",
|
|
|
|
DataType = "ui4",
|
|
|
|
SendsEvents = true
|
|
|
|
});
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "ValidationSucceededUpdateID",
|
|
|
|
DataType = "ui4",
|
|
|
|
SendsEvents = true
|
|
|
|
});
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "A_ARG_TYPE_RegistrationRespMsg",
|
|
|
|
DataType = "bin.base64",
|
|
|
|
SendsEvents = false
|
|
|
|
});
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "A_ARG_TYPE_RegistrationReqMsg",
|
|
|
|
DataType = "bin.base64",
|
|
|
|
SendsEvents = false
|
|
|
|
});
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "ValidationRevokedUpdateID",
|
|
|
|
DataType = "ui4",
|
|
|
|
SendsEvents = true
|
|
|
|
});
|
|
|
|
|
|
|
|
list.Add(new StateVariable
|
|
|
|
{
|
|
|
|
Name = "A_ARG_TYPE_Result",
|
|
|
|
DataType = "int",
|
|
|
|
SendsEvents = false
|
|
|
|
});
|
|
|
|
|
|
|
|
return list;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|