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