def add_to_answer_set(values: List['TenantChild'], result: AnswerSet) -> None: result.add('Tenant child name TE', [ none2unans(v.tenant_child_name_te, AnswerType.TEXT) for v in values ]) result.add( 'Tenant child DOB', [none2unans(v.tenant_child_dob, AnswerType.DATE) for v in values])
def add_to_answer_set(values: List['TenantComplaints'], result: AnswerSet) -> None: result.add('Area complained of MC', [ enum2mc(none2unans(v.area_complained_of_mc, AnswerType.MC)) for v in values ]) result.add('Which room MC', [ enum2mc(none2unans(v.which_room_mc, AnswerType.MC)) for v in values ]) result.add('Conditions complained of TE', [ none2unans(v.conditions_complained_of_te, AnswerType.TEXT) for v in values ])
def to_answer_set(self) -> AnswerSet: result = AnswerSet() result.add_opt('Access person TE', self.access_person_te) result.add_opt('Access person phone TE', self.access_person_phone_te) result.add_opt('Case number TE', self.case_number_te) result.add_opt('Cause of action description TE', self.cause_of_action_description_te) result.add_opt('Harassment details TE', self.harassment_details_te) result.add_opt('IFP other order TE', self.ifp_other_order_te) result.add_opt('Landlord address city TE', self.landlord_address_city_te) result.add_opt('Landlord address street TE', self.landlord_address_street_te) result.add_opt('Landlord address zip TE', self.landlord_address_zip_te) result.add_opt('Landlord contact person name first TE', self.landlord_contact_person_name_first_te) result.add_opt('Landlord contact person name last TE', self.landlord_contact_person_name_last_te) result.add_opt('Landlord entity name TE', self.landlord_entity_name_te) result.add_opt('Landlord name first TE', self.landlord_name_first_te) result.add_opt('Landlord name last TE', self.landlord_name_last_te) result.add_opt('Management company address city TE', self.management_company_address_city_te) result.add_opt('Management company address street TE', self.management_company_address_street_te) result.add_opt('Management company address zip TE', self.management_company_address_zip_te) result.add_opt('Management company name TE', self.management_company_name_te) result.add_opt('Other pay period TE', self.other_pay_period_te) result.add_opt('Prior relief sought case numbers and dates TE', self.prior_relief_sought_case_numbers_and_dates_te) result.add_opt('Reason for further application TE', self.reason_for_further_application_te) result.add_opt('Tenant address apt no TE', self.tenant_address_apt_no_te) result.add_opt('Tenant address city TE', self.tenant_address_city_te) result.add_opt('Tenant address street TE', self.tenant_address_street_te) result.add_opt('Tenant address zip TE', self.tenant_address_zip_te) result.add_opt('Tenant income source TE', self.tenant_income_source_te) result.add_opt('Tenant name first TE', self.tenant_name_first_te) result.add_opt('Tenant name last TE', self.tenant_name_last_te) result.add_opt('Tenant name middle TE', self.tenant_name_middle_te) result.add_opt('Tenant phone home TE', self.tenant_phone_home_te) result.add_opt('Tenant phone work TE', self.tenant_phone_work_te) result.add_opt('Tenant property owned TE', self.tenant_property_owned_te) result.add_opt('Inspection request copy number NU', self.inspection_request_copy_number_nu) result.add_opt('Tenant address floor NU', self.tenant_address_floor_nu) result.add_opt('Tenant children under 6 NU', self.tenant_children_under_6_nu) result.add_opt('Tenant income NU', self.tenant_income_nu) result.add_opt('Tenant monthly exp deductions NU', self.tenant_monthly_exp_deductions_nu) result.add_opt('Tenant monthly exp employment NU', self.tenant_monthly_exp_employment_nu) result.add_opt('Tenant monthly exp food etc NU', self.tenant_monthly_exp_food_etc_nu) result.add_opt('Tenant monthly exp housing NU', self.tenant_monthly_exp_housing_nu) result.add_opt('Tenant monthly exp insurance NU', self.tenant_monthly_exp_insurance_nu) result.add_opt('Tenant monthly exp laundry NU', self.tenant_monthly_exp_laundry_nu) result.add_opt('Tenant monthly exp medical NU', self.tenant_monthly_exp_medical_nu) result.add_opt('Tenant monthly exp other NU', self.tenant_monthly_exp_other_nu) result.add_opt('Tenant monthly exp support NU', self.tenant_monthly_exp_support_nu) result.add_opt('Tenant monthly exp transportation NU', self.tenant_monthly_exp_transportation_nu) result.add_opt('Tenant monthly exp utilities NU', self.tenant_monthly_exp_utilities_nu) result.add_opt('Tenant monthly rent NU', self.tenant_monthly_rent_nu) result.add_opt('Fine landlord harassment TF', self.fine_landlord_harassment_tf) result.add_opt('Flag TF', self.flag_tf) result.add_opt('Harassment conduct in violation TF', self.harassment_conduct_in_violation_tf) result.add_opt('Harassment contact TF', self.harassment_contact_tf) result.add_opt('Harassment disturbed TF', self.harassment_disturbed_tf) result.add_opt('Harassment failed to comply TF', self.harassment_failed_to_comply_tf) result.add_opt('Harassment false cert repairs TF', self.harassment_false_cert_repairs_tf) result.add_opt('Harassment force TF', self.harassment_force_tf) result.add_opt('Harassment induced leaving TF', self.harassment_induced_leaving_tf) result.add_opt('Harassment misleading info TF', self.harassment_misleading_info_tf) result.add_opt('Harassment removed possessions TF', self.harassment_removed_possessions_tf) result.add_opt('Harassment requested id TF', self.harassment_requested_id_tf) result.add_opt('Harassment stopped service TF', self.harassment_stopped_service_tf) result.add_opt('Harassment sued TF', self.harassment_sued_tf) result.add_opt('Harassment threats re status TF', self.harassment_threats_re_status_tf) result.add_opt('Management company to be sued TF', self.management_company_to_be_sued_tf) result.add_opt('More than 2 apartments in building TF', self.more_than_2_apartments_in_building_tf) result.add_opt('More than one family per apartment TF', self.more_than_one_family_per_apartment_tf) result.add_opt('Previous application TF', self.previous_application_tf) result.add_opt('Problem is urgent TF', self.problem_is_urgent_tf) result.add_opt('Request fee waiver TF', self.request_fee_waiver_tf) result.add_opt('Sue for harassment TF', self.sue_for_harassment_tf) result.add_opt('Sue for repairs TF', self.sue_for_repairs_tf) result.add_opt('Tenant receives public assistance TF', self.tenant_receives_public_assistance_tf) result.add_opt('Tenant wants to serve TF', self.tenant_wants_to_serve_tf) result.add_opt('user_is_NYCHA_tf', self.user_is_nycha_tf) result.add_opt('Access person MC', enum2mc_opt(self.access_person_mc)) result.add_opt('Action type MS', enum2mc_opt(self.action_type_ms)) result.add_opt('Court county MC', enum2mc_opt(self.court_county_mc)) result.add_opt('Court location MC', enum2mc_opt(self.court_location_mc)) result.add_opt('Harassment allegations MS', enum2mc_opt(self.harassment_allegations_ms)) result.add_opt('IFP what orders MS', enum2mc_opt(self.ifp_what_orders_ms)) result.add_opt('Landlord address state MC', enum2mc_opt(self.landlord_address_state_mc)) result.add_opt('Landlord entity or individual MC', enum2mc_opt(self.landlord_entity_or_individual_mc)) result.add_opt('Management company address state MC', enum2mc_opt(self.management_company_address_state_mc)) result.add_opt('Pay period MC', enum2mc_opt(self.pay_period_mc)) result.add_opt('Prior harassment case MC', enum2mc_opt(self.prior_harassment_case_mc)) result.add_opt('Prior repairs case MC', enum2mc_opt(self.prior_repairs_case_mc)) result.add_opt('Tenant address state MC', enum2mc_opt(self.tenant_address_state_mc)) result.add_opt('Tenant borough MC', enum2mc_opt(self.tenant_borough_mc)) result.add_opt('Tenant repairs allegations MC', enum2mc_opt(self.tenant_repairs_allegations_mc)) if self.tenant_child_list: TenantChild.add_to_answer_set(self.tenant_child_list, result) if self.tenant_complaints_list: TenantComplaints.add_to_answer_set(self.tenant_complaints_list, result) return result