Skip to content

Instantly share code, notes, and snippets.

@agilejon
Created August 1, 2014 00:22
Show Gist options
  • Save agilejon/f6ecf43c5f2f7394f868 to your computer and use it in GitHub Desktop.
Save agilejon/f6ecf43c5f2f7394f868 to your computer and use it in GitHub Desktop.
C# representation of an SNS message
/// <summary>
/// This is the C# representation of an SNS message. Its property names should not be modified unless AWS changes their spec.
/// </summary>
public sealed class SnsMessage
{
#region Properties that apply to both Subscription Confirmation and Notification messages
public string Message { get; set; }
public string MessageId { get; set; }
public string Signature { get; set; }
public string SignatureVersion { get; set; }
public string SigningCertURL { get; set; }
public string Timestamp { get; set; }
public string TopicArn { get; set; }
public string Type { get; set; }
#endregion
#region Properties that only apply to Notification messages
public string Subject { get; set; }
public string UnsubscribeURL { get; set; }
#endregion
#region Properties that only apply to Subscription Confirmation messages
public string SubscribeURL { get; set; }
public string Token { get; set; }
#endregion
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment