/// <inheritdoc/> public string ToDelimitedString() { CultureInfo culture = CultureInfo.CurrentCulture; return(string.Format( culture, StringHelper.StringFormatSequence(0, 23, Configuration.FieldSeparator), Id, ParticipationInstanceId?.ToDelimitedString(), ActionCode, ActionReason?.ToDelimitedString(), Participation?.ToDelimitedString(), ParticipationPerson != null ? string.Join(Configuration.FieldRepeatSeparator, ParticipationPerson.Select(x => x.ToDelimitedString())) : null, ParticipationPersonProviderType?.ToDelimitedString(), ParticipantOrganizationUnitType?.ToDelimitedString(), ParticipationOrganization != null ? string.Join(Configuration.FieldRepeatSeparator, ParticipationOrganization.Select(x => x.ToDelimitedString())) : null, ParticipantLocation != null ? string.Join(Configuration.FieldRepeatSeparator, ParticipantLocation.Select(x => x.ToDelimitedString())) : null, ParticipationDevice != null ? string.Join(Configuration.FieldRepeatSeparator, ParticipationDevice.Select(x => x.ToDelimitedString())) : null, ParticipationBeginDateTimeArrivalTime.HasValue ? ParticipationBeginDateTimeArrivalTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, ParticipationEndDateTimeDepartureTime.HasValue ? ParticipationEndDateTimeDepartureTime.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, ParticipationQualitativeDuration?.ToDelimitedString(), ParticipationAddress != null ? string.Join(Configuration.FieldRepeatSeparator, ParticipationAddress.Select(x => x.ToDelimitedString())) : null, ParticipantTelecommunicationAddress != null ? string.Join(Configuration.FieldRepeatSeparator, ParticipantTelecommunicationAddress.Select(x => x.ToDelimitedString())) : null, ParticipantDeviceIdentifier?.ToDelimitedString(), ParticipantDeviceManufactureDate.HasValue ? ParticipantDeviceManufactureDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, ParticipantDeviceExpiryDate.HasValue ? ParticipantDeviceExpiryDate.Value.ToString(Consts.DateTimeFormatPrecisionSecond, culture) : null, ParticipantDeviceLotNumber, ParticipantDeviceSerialNumber, ParticipantDeviceDonationIdentification?.ToDelimitedString(), ParticipationDeviceType?.ToDelimitedString() ).TrimEnd(Configuration.FieldSeparator.ToCharArray())); }
public override string ToString() { var sb = new StringBuilder(); sb.Append($"Action:{ActionType.ToString()} Reason:{ActionReason.ToString()}"); if (ActionType == ActionSyncType.AddUser || ActionType == ActionSyncType.RemoveUser || ActionType == ActionSyncType.UpdateUser) { sb.Append($" User={FaxUserSyncObj.first_name} {FaxUserSyncObj.last_name} ({FaxUserSyncObj.username})"); } else { sb.Append($" AttorneyId={AssistantSnycObj.AttorneyId} AssistantUserId={AssistantSnycObj.FaxUserId} FaxNumber={AssistantSnycObj.FaxNumber}"); } return(sb.ToString()); }