public GetProfileByTokenResponse(GetProfileResponse profileResponse) { if (profileResponse.Credentials != null) { Credentials = new GetProfileByTokenCredentials(profileResponse.Credentials); } if (profileResponse.CustomerProfileObject != null) { CustomerProfileObject = new ProfileObject(profileResponse.CustomerProfileObject); } }
public RESTAPIProfileResponse(GetProfileResponse profileResponse) : base(profileResponse.ErrorList.Count == 0 ? profileResponse?.CustomerProfileObject : null) { ErrorList = profileResponse.ErrorList; }