getContactInfoString function

String getContactInfoString(
  1. ContactInfo contactInfo
)

Implementation

String getContactInfoString(ContactInfo contactInfo) {
  String getContactInfoString = "";
  switch (contactInfo) {
    case ContactInfo.contactOnly:
      getContactInfoString = "CONTACT_ONLY";
      break;
    case ContactInfo.allData:
      getContactInfoString = "ALL_DATA";
      break;
    case ContactInfo.contactEmailAndAddress:
      getContactInfoString = "CONTACT_EMAIL_ADDRESS";
      break;
  }
  return getContactInfoString;
}