PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/GolfSigma.Inventory/Model/Get/GetCourseAverage.cs

http://github.com/golfsigma/inventory-client
C# | 46 lines | 38 code | 8 blank | 0 comment | 0 complexity | afa4634da7053dded4e8c068fa6bb861 MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Text;
 4using System.Runtime.Serialization;
 5using System.Xml.Serialization;
 6
 7namespace GolfSigma.Inventory.Model
 8{
 9    public class GetCourseAverageRequest : IRequest
10    {
11        #region IRequest Members
12
13        public string HttpVerb
14        {
15            get { return "GET"; }
16        }
17
18        public string HttpPath
19        {
20            get { return "/summary/courseaverage.xml"; }
21        }
22
23        public IDictionary<string, string> HttpParameters
24        {
25            get { return null; }
26        }
27
28        public IDictionary<string, string> HttpHeaders
29        {
30            get { return null; }
31        }
32
33        #endregion
34    }
35
36    [XmlRoot("Response")]
37    public class GetCourseAverageResponse
38    {
39        [XmlArray("Items")]
40        [XmlArrayItem("course", typeof(Model.CourseAverage))]
41        public List<CourseAverage> Averages { get; set; }
42
43        [XmlElement("ResponseMetadata")]
44        public ResponseMetadata ResponseMetadata { get; set; }
45    }
46}