summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenId/Extensions/DemandLevel.cs
diff options
context:
space:
mode:
authorAndrew Arnott <andrewarnott@gmail.com>2008-04-17 21:01:43 -0700
committerAndrew Arnott <andrewarnott@gmail.com>2008-04-17 21:01:43 -0700
commit0fa78ed519bd570d01bea13f6c19d12fa5ab369f (patch)
tree7cb77a1929020f35d280664488e4f70c9fbc4acd /src/DotNetOpenId/Extensions/DemandLevel.cs
parent07b8b586c6873b88df126b4bd9947d87afe8f929 (diff)
downloadDotNetOpenAuth-0fa78ed519bd570d01bea13f6c19d12fa5ab369f.zip
DotNetOpenAuth-0fa78ed519bd570d01bea13f6c19d12fa5ab369f.tar.gz
DotNetOpenAuth-0fa78ed519bd570d01bea13f6c19d12fa5ab369f.tar.bz2
Attribute Exchange extension is now feature complete.
Also added some unit and round-tripping tests.
Diffstat (limited to 'src/DotNetOpenId/Extensions/DemandLevel.cs')
-rw-r--r--src/DotNetOpenId/Extensions/DemandLevel.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/DotNetOpenId/Extensions/DemandLevel.cs b/src/DotNetOpenId/Extensions/DemandLevel.cs
new file mode 100644
index 0000000..05ec8be
--- /dev/null
+++ b/src/DotNetOpenId/Extensions/DemandLevel.cs
@@ -0,0 +1,21 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace DotNetOpenId.Extensions {
+ /// <summary>
+ /// Indicates a relying party's level of desire for a particular value
+ /// to be provided by the OpenID Provider.
+ /// </summary>
+ public enum DemandLevel {
+ /// <summary>
+ /// The relying party considers this information as optional.
+ /// </summary>
+ Optional,
+ /// <summary>
+ /// The relying party considers this information as required.
+ /// Note however, that the Provider still has the option to not supply this value.
+ /// </summary>
+ Required,
+ }
+}