930b0845758ae141f660cc55cf5b763a7fb03258
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Discovery / DiscoveryClientResult.cs
1 // \r
2 // System.Web.Services.Disocvery.DiscoveryClientResult.cs\r
3 //\r
4 // Author:\r
5 //   Dave Bettin (javabettin@yahoo.com)\r
6 //   Lluis Sanchez Gual (lluis@ximian.com)\r
7 //\r
8 // Copyright (C) Dave Bettin, 2002\r
9 //\r
10
11 //
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
19 // 
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
22 // 
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 //
31 \r
32 \r
33 using System.Xml.Serialization;\r
34 \r
35 namespace System.Web.Services.Discovery {\r
36         public sealed class DiscoveryClientResult {\r
37         \r
38                 #region Fields\r
39 \r
40                 private string filename;\r
41                 private string referenceTypeName;\r
42                 private string url;\r
43 \r
44                 #endregion // Fields\r
45 \r
46                 #region Constructors\r
47 \r
48                 public DiscoveryClientResult () \r
49                 {\r
50                 }\r
51                 \r
52                 public DiscoveryClientResult (Type referenceType, string url, string filename) : this() \r
53                 {\r
54                         this.filename = filename;\r
55                         this.url = url;\r
56                         this.referenceTypeName = referenceType.FullName;\r
57                 }\r
58                 \r
59                 #endregion // Constructors\r
60 \r
61                 #region Properties      \r
62         \r
63                 [XmlAttribute("filename")]\r
64                 public string Filename {\r
65                         get { return filename; }\r
66                         set { filename = value; }\r
67                 }\r
68                 \r
69                 [XmlAttribute("referenceType")]\r
70                 public string ReferenceTypeName {\r
71                         get { return referenceTypeName; }\r
72                         set { referenceTypeName = value; }\r
73                 }\r
74                 \r
75                 [XmlAttribute("url")]\r
76                 public string Url {\r
77                         get { return url; }\r
78                         set { url = value; }\r
79                 }\r
80                 \r
81                 #endregion // Properties\r
82         }\r
83 }