public override string WriteJSON(Diary par) { return line = Convert.ToString("\"Type\":" + "\"" + par.GetType() + "\"" + "," + "\n" + "\"Id\":" + "\"" + par.Id + "\"" + "," + "\n" + "\"Name\":" + "\"" + par.Name + "\"" + "," + "\n" + "\"PhoneType\":" + "\"" + ((Phone)par).PhoneType + "\"" + "," + "\n" + "\"PhoneNumber\":" + "\"" + ((Phone)par).PhoneNumber + "\"" + ","); }
public override string WriteJSON(Diary par) { return line = Convert.ToString("\"Type\":" + "\"" + par.GetType() + "\"" + ","+ "\n" + "\"Id\":" + "\"" + par.Id + "\"" + "," + "\n" + "\"Name\":" + "\"" + par.Name + "\"" + "," + "\n" + "\"NameCard\":" + "\"" + ((Card)par).NameCard + "\"" + "," + "\n" + "\"NumberCard\":" + "\"" + ((Card)par).NumberCard + "\"" + ","); }
public override string WriteYAML(Diary par, int i) { return line = Convert.ToString( " " + "Type:" + par.GetType() + "\n" + " " + "Id:" + par.Id + "\n" + " " + "Name:" + par.Name + "\n" + " " + "NameCard:" + "\n" + " " + "NumberCard:" + "\n" + " " + "PhoneType:" + ((Phone)par).PhoneType + "\n" + " " + "Phone:" + ((Phone)par).PhoneNumber + "\n"); }
public override string WriteXML(Diary par, int i) { return line = Convert.ToString("<" + "Element id=\"" + i + "\"" + ">" + "\n" + "<" + "type" + ">" + par.GetType() + "</" + "type" + ">" + "\n" + "<" + "Id" + ">" + par.Id + "</" + "Id" + ">" + "\n" + "<" + "Name" + ">" + par.Name + "</" + "Name" + ">" + "\n" + "<" + "NameCard" + "/>" + "\n" + "<" + "NumberCard" + "/>" + "\n" + "<" + "PhoneType" + ">" + ((Phone)par).PhoneType + "</" + "PhoneType" + ">" + "\n" + "<" + "PhoneNumber" + ">" + ((Phone)par).PhoneNumber + "</" + "PhoneNumber" + ">" + "\n" + "</" + "Element" + ">"); }
public override string WriteCSV(Diary par) { return line = Convert.ToString(par.GetType() + "," + par.Id + "," + par.Name + "," + ((Phone)par).PhoneType + "," + ((Phone)par).PhoneNumber); }
public virtual string WriteYAML(Diary par, int i) { return line; }
public virtual string WriteJSON(Diary par) { return line; }
public virtual string WriteCSV(Diary par) { return line; }
public override string WriteCSV(Diary par) { return line = Convert.ToString((par.GetType() + "," + par.Id + "," + par.Name + "," + ((Card)par).NameCard + "," + ((Card)par).NumberCard)); }