private void SetInitialValues(string message, ActionType actionType, MemeType memeType) { if (memeType.Equals(MemeType.FuckYea)) { this.title = actionType.ToString() + " action was successful."; } else { this.title = actionType.ToString() + " action caused an error."; } this.type = actionType; this.image = memeType; }
private void SetInitialValues(string message, ActionType actionType, MemeType? memeType = null) { if (memeType.Equals(MemeType.FuckYea)) { this.title = actionType.ToString() + " action was successful."; } else { this.title = actionType.ToString() + " action caused an error."; } this.type = actionType; this.image = memeType; }