TCL电子猫眼
This commit is contained in:
@@ -407,12 +407,12 @@ namespace RCUHost.Implement
|
||||
{
|
||||
hostModal.Modal = new RoomTypeModalCache() { ModalAddress = device.Value.Address };
|
||||
}
|
||||
if (hostModal.Modal!=null)
|
||||
if (hostModal.Modal != null)
|
||||
{
|
||||
if (string.IsNullOrEmpty(hostModal.Modal.ModalAddress))
|
||||
{
|
||||
hostModal.Modal.ModalAddress = device.Value.Address;
|
||||
}
|
||||
hostModal.Modal.ModalAddress = device.Value.Address;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -549,6 +549,9 @@ namespace RCUHost.Implement
|
||||
string TCLcuid = host.TCLCUID;
|
||||
string skillid = host.TCLSkillID;
|
||||
|
||||
string ebell_rtsp = host.EBell_RSTP;
|
||||
int du = host.EBell_TV_duration;
|
||||
|
||||
//如果是息屏
|
||||
//004000022
|
||||
if (device.Value.Address.Equals("004000022"))
|
||||
@@ -564,12 +567,26 @@ namespace RCUHost.Implement
|
||||
{
|
||||
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "SIP");
|
||||
}
|
||||
if (hotelcode.Equals("1085"))
|
||||
|
||||
//if (hotelcode.Equals("1085"))
|
||||
//{
|
||||
// if (hostModal.Modal.ModalAddress.Equals("004000021"))
|
||||
// {
|
||||
// TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
|
||||
// }
|
||||
//}
|
||||
|
||||
//这个是电子门铃
|
||||
if (hostModal.Modal.ModalAddress.Equals("004000021"))
|
||||
{
|
||||
if (hostModal.Modal.ModalAddress.Equals("004000021"))
|
||||
Dictionary<string, string> ddd = new Dictionary<string, string>();
|
||||
if (!string.IsNullOrEmpty(ebell_rtsp))
|
||||
{
|
||||
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
|
||||
ddd.Add("url",ebell_rtsp);
|
||||
ddd.Add("display_duration",du.ToString());
|
||||
}
|
||||
|
||||
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "DOORBELL",0,ddd);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -631,12 +631,26 @@ namespace RCUHost.Implement
|
||||
{
|
||||
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "SIP");
|
||||
}
|
||||
if (hotelcode.Equals("1085"))
|
||||
//if (hotelcode.Equals("1085"))
|
||||
//{
|
||||
// if (hostModal.Modal.ModalAddress.Equals("004000023"))
|
||||
// {
|
||||
// TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
|
||||
// }
|
||||
//}
|
||||
|
||||
string ebell_rtsp = host.EBell_RSTP;
|
||||
int du = host.EBell_TV_duration;
|
||||
if (hostModal.Modal.ModalAddress.Equals("004000021"))
|
||||
{
|
||||
if (hostModal.Modal.ModalAddress.Equals("004000023"))
|
||||
Dictionary<string, string> ddd = new Dictionary<string, string>();
|
||||
if (!string.IsNullOrEmpty(ebell_rtsp))
|
||||
{
|
||||
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "ROMANTIC");
|
||||
ddd.Add("url", ebell_rtsp);
|
||||
ddd.Add("display_duration", du.ToString());
|
||||
}
|
||||
|
||||
TCLCommon.SendData(hotelcode, roomnum, TCLcuid, skillid, "DOORBELL", 0, ddd);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user