public override string SerializeResponse() { StringBuilder builder = new StringBuilder(); builder.AppendLine("WRITE CALIBRATION"); builder.AppendFormat("Record : {0}", Calibrator.ToString()); builder.AppendLine(); builder.AppendFormat("Calibration : {0}*x + {1}", A, B); builder.AppendLine(); builder.AppendFormat("Checksum : {0}", Checksum); builder.AppendLine(); return(builder.ToString()); }
public override string SerializeResponse() { StringBuilder builder = new StringBuilder(); builder.AppendLine("READ CALIBRATION"); builder.AppendFormat("Record : {0} ({1})", Calibrator.ToString(), ValidMarker); builder.AppendLine(); if (ValidMarker) { builder.AppendFormat("Calibration : {0}*x + {1}", A, B); builder.AppendLine(); builder.AppendFormat("Checksum : {0}", Checksum); builder.AppendLine(); } return(builder.ToString()); }