public void ShowValues() { ActionDataType card = GetActionData(action.data.card); ActionDataType list = GetActionData(action.data.list); ActionDataType board = GetActionData(action.data.board); Console.WriteLine("\nDATA\n"); Console.WriteLine($"-=-=-= CARD =-=-=-\nid: {card.id}\nname: {card.name}\nshortLink: {card.shortLink}\nidShort: {card.idShort}"); Console.WriteLine($"-=-=-= LIST =-=-=-\nid: {list.id}\nname: {list.name}\nshortLink: {list.shortLink}\nidShort: {list.idShort}"); Console.WriteLine($"-=-=-= BOARD =-=-=-\nid: {board.id}\nname: {board.name}\nshortLink: {board.shortLink}\nidShort: {board.idShort}"); Console.WriteLine("\n"); }
public ActionDataType GetActionData(ActionDataType data) => data != null ? data : new ActionDataType();