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
using Newtonsoft.Json; | |
namespace CloudEventSample.Models | |
{ | |
public class CloudEvent<T> where T : class | |
{ | |
[JsonProperty("eventID")] | |
public string EventId { get; set; } | |
[JsonProperty("cloudEventsVersion")] | |
public string CloudEventVersion { get; set; } | |
[JsonProperty("eventType")] | |
public string EventType { get; set; } | |
[JsonProperty("eventTypeVersion")] | |
public string EventTypeVersion { get; set; } | |
[JsonProperty("source")] | |
public string Source { get; set; } | |
[JsonProperty("eventTime")] | |
public string EventTime { get; set; } | |
[JsonProperty("data")] | |
public T Data { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment