serviceinfo.cs

来自「完全网站系统」· CS 代码 · 共 157 行

CS
157
字号
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 + =
减小字号Ctrl + -
显示快捷键?