Exemplo n.º 1
0
 public NodeInfo(ServerApi.ServerNode n)
 {
     Ip = n.Ip;
     if (n.PublicKey.All("0123456789ABCDEF".Contains))
     {
         PublicKey = ConvUtils.ConvertHashPartial(n.PublicKey);
     }
     Version = n.Version ?? string.Empty;
     byte.TryParse(n.Platform, out Platform);
     CountTrust       = n.CountTrust;
     TimeRegistration = ConvUtils.UnixTimeStampToDateTimeS(n.TimeRegistration);
     TimeActive       = n.TimeActive;
     Active           = true;
 }