forked from hubspot-net/HubSpot.NET
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with updating legal basis on specific email subscriptions …
…and fix unsubscribe functionality
- Loading branch information
Showing
6 changed files
with
127 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
HubSpot.NET/Api/EmailSubscriptions/Dto/SubscriptionStatusUpdateHubSpotModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
using System.Collections.Generic; | ||
using System.Runtime.Serialization; | ||
using HubSpot.NET.Core.Interfaces; | ||
|
||
namespace HubSpot.NET.Api.EmailSubscriptions.Dto | ||
{ | ||
/// <summary> | ||
/// The subscription status update hub spot model class | ||
/// </summary> | ||
/// <seealso cref="IHubSpotModel"/> | ||
public class SubscriptionStatusUpdateHubSpotModel : IHubSpotModel | ||
{ | ||
/// <summary> | ||
/// Gets or sets the value of the subscription statuses | ||
/// </summary> | ||
[DataMember(Name = "subscriptionStatuses")] | ||
public List<SubscriptionStatusDetailHubSpotModel> SubscriptionStatuses { get; set; } | ||
|
||
/// <summary> | ||
/// Gets the value of the is name value | ||
/// </summary> | ||
[IgnoreDataMember] | ||
public bool IsNameValue { get; } | ||
|
||
/// <summary> | ||
/// Returns the hub spot data entity using the specified data entity | ||
/// </summary> | ||
/// <param name="dataEntity">The data entity</param> | ||
public void ToHubSpotDataEntity(ref dynamic dataEntity) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Creates the hub spot data entity using the specified hubspot data | ||
/// </summary> | ||
/// <param name="hubspotData">The hubspot data</param> | ||
public void FromHubSpotDataEntity(dynamic hubspotData) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets the value of the route base path | ||
/// </summary> | ||
[IgnoreDataMember] | ||
public string RouteBasePath => "/email/public/v1"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters