summaryrefslogtreecommitdiffstats
path: root/src/DotNetOAuth/IProtocolMessage.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/DotNetOAuth/IProtocolMessage.cs')
-rw-r--r--src/DotNetOAuth/IProtocolMessage.cs16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/DotNetOAuth/IProtocolMessage.cs b/src/DotNetOAuth/IProtocolMessage.cs
index a1ba259..76512a4 100644
--- a/src/DotNetOAuth/IProtocolMessage.cs
+++ b/src/DotNetOAuth/IProtocolMessage.cs
@@ -1,4 +1,10 @@
-namespace DotNetOAuth {
+//-----------------------------------------------------------------------
+// <copyright file="IProtocolMessage.cs" company="Andrew Arnott">
+// Copyright (c) Andrew Arnott. All rights reserved.
+// </copyright>
+//-----------------------------------------------------------------------
+
+namespace DotNetOAuth {
using System;
using System.Collections.Generic;
using System.Text;
@@ -7,11 +13,17 @@
/// The interface that classes must implement to be serialized/deserialized
/// as OAuth messages.
/// </summary>
- interface IProtocolMessage {
+ internal interface IProtocolMessage {
+ /// <summary>
+ /// Gets the version of the protocol this message is prepared to implement.
+ /// </summary>
+ Protocol Protocol { get; }
+
/// <summary>
/// Gets whether this is a direct or indirect message.
/// </summary>
MessageTransport Transport { get; }
+
/// <summary>
/// Checks the message state for conformity to the protocol specification
/// and throws an exception if the message is invalid.