35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
using Sarand.Net.Standard.Base.Utils;
|
|
using System;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Base.WebService
|
|
{
|
|
//=======================================================================
|
|
public class SbmWebServiceInstanceDefinition
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Definitions.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Data members.
|
|
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
public SbmWebServiceInstanceDefinition(String caption, String url)
|
|
{
|
|
Caption = caption;
|
|
URL = url;
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
public String Caption { get; }
|
|
public String URL { get; }
|
|
public DateTime LastRequestAt { get; set; }
|
|
public DateTime LastSuccessfulRequestAt { get; set; }
|
|
public bool Valid { get { return (!StringUtil.IsEmpty(URL)); } }
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|