Skip to content

Strongly typed "LINQ to Customer.io" implementation for API broadcasts #7

@vegardlarsen

Description

@vegardlarsen
await _customerIo.Campaign(17)
    .Where(broadcast => broadcast.InSegment(23))
    .Where(broadcast => broadcast.Customer.Interest == "roadrunners")
    .TriggerAsync(new { data = "foo" });

This would give us type safety (we already know what all the customer attributes are, but it would require adding a generic type argument to our entire class).

Everything in the API syntax, should be possible to implement using expression trees, but this may turn out to be a lot more work than required.

See:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions