public Silanis.ESL.API.Sender ToAPISender() { if (sdkAccountMember != null) { Silanis.ESL.API.Sender result = new Silanis.ESL.API.Sender(); result.Address = new AddressConverter(sdkAccountMember.Address).ToAPIAddress(); result.FirstName = sdkAccountMember.FirstName; result.LastName = sdkAccountMember.LastName; result.Title = sdkAccountMember.Title; result.Company = sdkAccountMember.Company; result.Email = sdkAccountMember.Email; result.Phone = sdkAccountMember.PhoneNumber; result.Language = sdkAccountMember.Language; Silanis.ESL.API.SenderStatus?convertedStatus = new SenderStatusConverter(sdkAccountMember.Status).ToAPISenderStatus(); if (convertedStatus.HasValue) { result.Status = convertedStatus.Value; } return(result); } else { return(null); } }
public Silanis.ESL.API.Sender ToAPISender() { if (null != sdkAccountMember) { Silanis.ESL.API.Sender result = new Silanis.ESL.API.Sender(); result.Address = new AddressConverter(sdkAccountMember.Address).ToAPIAddress(); result.FirstName = sdkAccountMember.FirstName; result.LastName = sdkAccountMember.LastName; result.Title = sdkAccountMember.Title; result.Company = sdkAccountMember.Company; result.Email = sdkAccountMember.Email; result.Phone = sdkAccountMember.PhoneNumber; result.Language = sdkAccountMember.Language; string convertedStatus = new SenderStatusConverter(sdkAccountMember.Status).ToAPISenderStatus(); if (!String.IsNullOrEmpty(convertedStatus)) { result.Status = convertedStatus; } return(result); } else { return(null); } }
public Silanis.ESL.API.Sender ToAPISender() { if (sdkAccountMember != null ) { Silanis.ESL.API.Sender result = new Silanis.ESL.API.Sender(); result.Address = new AddressConverter(sdkAccountMember.Address).ToAPIAddress(); result.FirstName = sdkAccountMember.FirstName; result.LastName = sdkAccountMember.LastName; result.Title = sdkAccountMember.Title; result.Company = sdkAccountMember.Company; result.Email = sdkAccountMember.Email; result.Phone = sdkAccountMember.PhoneNumber; result.Language = sdkAccountMember.Language; Silanis.ESL.API.SenderStatus? convertedStatus = new SenderStatusConverter(sdkAccountMember.Status).ToAPISenderStatus(); if ( convertedStatus.HasValue ) result.Status = convertedStatus.Value; return result; } else { return null; } }