public PduUdSegment(IPduProfileSettings settings, PduDcsSegment dcs) { if (settings == null) { throw new ArgumentNullException("Profile settings not specified."); } if (dcs == null || dcs.GetCodingScheme() == DCS.Other) { throw new NotSupportedException("Data coding scheme not supported."); } _dcs = dcs; _source = settings?.UserData?.Value ?? string.Empty; encode(_source, dcs.GetCoder()); }
public void SetUserData(string value) { _source = value ?? string.Empty; encode(_source, _dcs.GetCoder()); }