Skip to content

Reading campaigns crash #17

@mystery123sk

Description

@mystery123sk

When I try to enumerate all campaigns, if the campaign's status is 'cancelled', the convert from json will crash:

GetEmailCampaigns gecRes = ecApi.GetEmailCampaigns(null, null, "globalStats");

foreach (JObject c in gecRes.Campaigns)
{
GetEmailCampaign campaign = c.ToObject(); //crash here
}

There's probably missing 'Cancelled' in GetEmailCampaign.StatusEnum.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions