public static void print(KanjiResponse kanjiResponse) { if (kanjiResponse.user_information != null && kanjiResponse.requested_information != null) { UserInfoPrinter.print(kanjiResponse.user_information); KanjiPrinter.print(kanjiResponse.requested_information); } else { Console.WriteLine(kanjiResponse.httpResponse.ToString()); } }
public static void print(RadicalsResponse radicalsResponse) { if (radicalsResponse.user_information != null && radicalsResponse.requested_information != null) { UserInfoPrinter.print(radicalsResponse.user_information); RadicalsPrinter.print(radicalsResponse.requested_information); } else { Console.WriteLine(radicalsResponse.httpResponse.ToString()); } }