⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serviceinfo.cs

📁 一个ASP.NET下的中文内容管理和社区系统
💻 CS
字号:
namespace ASPNET.StarterKit.Communities.Services {

    using System;
    using System.Collections;



    //*********************************************************************
    //
    // ServiceInfo Class
    //
    // Represents all the information about a service. A service
    // can be either a community Web service or an RSS services.
    //
    //*********************************************************************

    public class ServiceInfo {
    
        int _id;
        string _name;
        string _url;
        ServiceType _type;
        int _maximumItems;
        int _refreshRate;
        string _password;
        DateTime _dateLastRefreshed;



        //*********************************************************************
        //
        // ID Property
        //
        // Represents the ID of the service.
        //
        //*********************************************************************
  
        public int ID {
            get {return _id;}
            set {_id = value;}
        }


        //*********************************************************************
        //
        // Name Property
        //
        // Represents the name of the service.
        //
        //*********************************************************************
          
        public string Name {
            get {return _name;}
            set {_name = value;}
        }
        

        //*********************************************************************
        //
        // URL Property
        //
        // Represents the URL of the service.
        //
        //*********************************************************************
          
        public string Url {
            get {return _url;}
            set {_url = value;}
        }
        

        //*********************************************************************
        //
        // Type Property
        //
        // Represents the type of the service such as community Web 
        // service or RSS.
        //
        //*********************************************************************
          
        public ServiceType Type {
            get {return _type;}
            set {_type = value;}
        }
 
 
        //*********************************************************************
        //
        // RefreshRate Property
        //
        // Represents how often the service is called (in minutes).
        //
        //*********************************************************************
         
        public int RefreshRate {
            get {return _refreshRate;}
            set {_refreshRate = value;}
        }    


        //*********************************************************************
        //
        // MaximumItems Property
        //
        // Represents the number of items returned by the service.
        //
        //*********************************************************************
  
        public int MaximumItems {
            get {return _maximumItems;}
            set {_maximumItems = value;}
        
        }


        //*********************************************************************
        //
        // Password Property
        //
        // Represents the password required to call the service.
        //
        //*********************************************************************
  
        public string Password {
            get {return _password;}
            set {_password = value;}
        
        }


        //*********************************************************************
        //
        // DateTime Property
        //
        // Represents the date and time the service was last called.
        //
        //*********************************************************************
  
        public DateTime DateLastRefreshed {
            get {return _dateLastRefreshed;}
            set {_dateLastRefreshed = value;}
        }    
        
               

        //*********************************************************************
        //
        // ServiceInfo Constructor
        //
        // Initializes a new instance of the ServiceInfo object.
        //
        //*********************************************************************
  
        public ServiceInfo() {}
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -