summaryrefslogtreecommitdiffstats
path: root/source/Janrain.OpenId/Server/Request.cs
blob: b2d8132bf5b9c31cefdb692e5086fa91a10de84c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
using System;
using System.Collections.Generic;
using System.Text;

namespace Janrain.OpenId.Server
{

    public abstract class Request
    {
        
        public abstract string Mode { get; }

        public override string ToString()
        {
            string returnString = @"Request.Mode = {0}";
            return String.Format(returnString, Mode);
        }
    }

    // TODO Move this ABC out to it's own file
    public abstract class AssociatedRequest : Request
    {

        private string _assoc_handle;

        public string AssocHandle
        {
            get { return _assoc_handle; }
            set { _assoc_handle = value; }
        }

        public override string ToString()
        {
            string returnString ="AssociatedRequest.AssocHandle = {0}";
            return  base.ToString() + Environment.NewLine +  String.Format(returnString, AssocHandle);
        }        

    }
}