You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
946 B
32 lines
946 B
6 months ago
|
using HybirdFrameworkCore.Autofac.Attribute;
|
||
|
using log4net;
|
||
|
using Newtonsoft.Json;
|
||
|
using Service.Cloud.Client;
|
||
|
using Service.Cloud.Common;
|
||
|
using Service.Cloud.Msg.Cloud.Resp;
|
||
|
|
||
|
namespace Service.Cloud.Handler;
|
||
|
|
||
|
[Scope("InstancePerDependency")]
|
||
|
public class ChargeDevDataInfoResHandler : IBaseHandler
|
||
|
{
|
||
|
private static readonly ILog Log = LogManager.GetLogger(typeof(ChargeDevDataInfoResHandler));
|
||
|
|
||
|
public void Handle(string t)
|
||
|
{
|
||
|
ChargeDevDataInfoRes? resp = JsonConvert.DeserializeObject<ChargeDevDataInfoRes>(t);
|
||
|
if (resp != null)
|
||
|
{
|
||
|
if (CloudClientMgr.CloudClient != null)
|
||
|
{
|
||
|
CloudClientMgr.CloudClient.ChargeDevDataInfo.SetResp(resp);
|
||
|
Log.Info($"receive ChargeDevDataInfoRes {JsonConvert.SerializeObject(resp)}");
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public bool CanHandle(string cmd)
|
||
|
{
|
||
|
return CloudConst.chargeDevDataInfoRes == cmd;
|
||
|
}
|
||
|
}
|