~ubuntu-branches/ubuntu/saucy/blam/saucy

« back to all changes in this revision

Viewing changes to src/rss/RssChannel/RssCloud.cs

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese
  • Date: 2005-09-27 21:38:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050927213856-8no09ppptvhpqqsh
Tags: 1.8.2-2ubuntu6
Change .desktop comment description

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* RssCloud.cs
2
 
 * ===========
3
 
 * 
4
 
 * RSS.NET (http://rss-net.sf.net/)
5
 
 * Copyright � 2002, 2003 George Tsiokos. All Rights Reserved.
6
 
 * 
7
 
 * RSS 2.0 (http://blogs.law.harvard.edu/tech/rss)
8
 
 * RSS 2.0 is offered by the Berkman Center for Internet & Society at 
9
 
 * Harvard Law School under the terms of the Attribution/Share Alike 
10
 
 * Creative Commons license.
11
 
 * 
12
 
 * Permission is hereby granted, free of charge, to any person obtaining 
13
 
 * a copy of this software and associated documentation files (the "Software"), 
14
 
 * to deal in the Software without restriction, including without limitation 
15
 
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 
16
 
 * and/or sell copies of the Software, and to permit persons to whom the 
17
 
 * Software is furnished to do so, subject to the following conditions:
18
 
 * 
19
 
 * The above copyright notice and this permission notice shall be included in all
20
 
 * copies or substantial portions of the Software.
21
 
 * 
22
 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 
23
 
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 
24
 
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 
25
 
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 
26
 
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
27
 
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 
28
 
 * THE SOFTWARE.
29
 
*/
30
 
using System;
31
 
 
32
 
namespace Rss
33
 
{
34
 
        /// <summary>Allow processes to register with a cloud to be notified of updates to the channel.</summary>
35
 
        [Serializable()]
36
 
        public class RssCloud : RssElement
37
 
        {
38
 
                private RssCloudProtocol protocol = RssCloudProtocol.Empty;
39
 
                private string domain = RssDefault.String;
40
 
                private string path = RssDefault.String;
41
 
                private string registerProcedure = RssDefault.String;
42
 
                private int port = RssDefault.Int;
43
 
                /// <summary>Initialize a new instance of the RssCloud class.</summary>
44
 
                public RssCloud() {}
45
 
                /// <summary>Domain name or IP address of the cloud</summary>
46
 
                public string Domain
47
 
                {
48
 
                        get { return domain; }
49
 
                        set { domain = RssDefault.Check(value); }
50
 
                }
51
 
                /// <summary>TCP port that the cloud is running on</summary>
52
 
                public int Port
53
 
                {
54
 
                        get { return port; }
55
 
                        set { port = RssDefault.Check(value); }
56
 
                }
57
 
                /// <summary>Location of its responder</summary>
58
 
                public string Path
59
 
                {
60
 
                        get { return path; }
61
 
                        set { path = RssDefault.Check(value); }
62
 
                }
63
 
 
64
 
                /// <summary>Name of the procedure to call to request notification</summary>
65
 
                public string RegisterProcedure
66
 
                {
67
 
                        get { return registerProcedure; }
68
 
                        set { registerProcedure = RssDefault.Check(value); }
69
 
                }
70
 
                /// <summary>Protocol used</summary>
71
 
                public RssCloudProtocol Protocol
72
 
                {
73
 
                        get { return protocol; }
74
 
                        set { protocol = value; }
75
 
                }
76
 
        }
77
 
}