Esempio n. 1
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(base.ToString());

            sb.AppendLine();
            sb.AppendLine($"\tResponseCode:\t{ResponseCode:x02}");
            sb.AppendLine($"\tIDm:\t\t{string.Join("", IDm.Select(val => $"{val:x02}"))}");
            sb.AppendLine($"\tPMm:\t\t{string.Join("", PMm.Select(val => $"{val:x02}"))}");
            sb.Append($"\tRequestData:\t{(RequestData.HasValue ? $"{RequestData:x04}" : "null")}");

            return(sb.ToString());
        }
Esempio n. 2
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(base.ToString());

            sb.AppendLine();
            sb.AppendLine($"\tResponseCode:\t{ResponseCode:x02}");
            sb.AppendLine($"\tIDm:\t\t{string.Join("", IDm.Select(val => $"{val:x02}"))}");
            sb.AppendLine($"\tStatusFlag1:\t{StatusFlag1:x02}");
            sb.Append($"\tStatusFlag2:\t{StatusFlag2:x02}");

            return(sb.ToString());
        }
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(base.ToString());

            sb.AppendLine();
            sb.AppendLine($"\tResponseCode:\t{ResponseCode:x02}");
            sb.AppendLine($"\tIDm:\t\t{string.Join("", IDm.Select(val => $"{val:x02}"))}");
            sb.AppendLine($"\tStatusFlag1:\t{StatusFlag1:x02}");
            sb.AppendLine($"\tStatusFlag2:\t{StatusFlag2:x02}");
            sb.AppendLine($"\tNumberOfBlock:\t{(NumberOfBlock.HasValue ? $"{NumberOfBlock:x02}" : "null")}");
            sb.Append($"\tBlockData:\t{(BlockData == null ? "null" : string.Join("", BlockData.Select(val => $"{val:x02}")))}");

            return(sb.ToString());
        }
Esempio n. 4
0
        public override string ToString()
        {
            StringBuilder sb = new StringBuilder(base.ToString());

            sb.AppendLine();
            sb.AppendLine($"\tCommandCode:\t{CommandCode:x02}");
            sb.AppendLine($"\tIDm:\t\t{string.Join("", IDm.Select(val => $"{val:x02}"))}");
            sb.AppendLine($"\tNumberOfService:{NumberOfService:x02}");
            sb.AppendLine($"\tServiceCodeList:{string.Join("", ServiceCodeList.Select(val => $"{val:x02}"))}");
            sb.AppendLine($"\tNumberOfBlock:\t{NumberOfBlock:x02}");
            sb.AppendLine($"\tBlockList:\t{string.Join("", BlockList.Select(val => $"{val:x02}"))}");
            sb.Append($"\tCommand:\t{string.Join("", Command.Select(val => $"{val:x02}"))}");

            return(sb.ToString());
        }