public SubscriptionSubscribeHubSpotModel(GDPRLegalBasis legalBasis, string explanation) : this()
 {
     PortalSubscriptionLegalBasis            = GDPRLegalBases.GetBasis(legalBasis);
     PortalSubscriptionLegalBasisExplanation = explanation;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Used when GDPR compliance is enabled on portal
 /// </summary>
 /// <param name="id">The target subscription's ID</param>
 /// <param name="subscribed">Whether or not the contact is subscribing (if false, they are unsubscribing)</param>
 /// <param name="optState">The OptState of the contact for this subscription</param>
 /// <param name="legalBasis">The legal basis on which the contact can be added to this subscription</param>
 /// <param name="explanation">A brief explanation of why they should be subscribed</param>
 public SubscriptionStatusDetailHubSpotModel(long id, bool subscribed, OptState optState, GDPRLegalBasis legalBasis, string explanation) : this(id, subscribed, optState)
 {
     LegalBasis            = GDPRLegalBases.GetBasis(legalBasis);
     LegalBasisExplanation = explanation;
 }