Files
Umbraco-CMS/src/Umbraco.Web/Models/UpgradeCheckResponse.cs

33 lines
916 B
C#
Raw Normal View History

2013-10-19 15:07:02 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Umbraco.Core.Configuration;
namespace Umbraco.Web.Models
{
2013-10-20 19:58:44 +02:00
[DataContract(Name = "upgrade", Namespace = "")]
2013-10-19 15:07:02 +02:00
public class UpgradeCheckResponse
{
[DataMember(Name = "type")]
public string Type { get; set; }
2013-10-20 19:58:44 +02:00
2013-10-19 15:07:02 +02:00
[DataMember(Name = "comment")]
public string Comment { get; set; }
[DataMember(Name = "url")]
public string Url { get; set; }
public UpgradeCheckResponse() { }
public UpgradeCheckResponse(string upgradeType, string upgradeComment, string upgradeUrl)
{
Type = upgradeType;
Comment = upgradeComment;
Url = upgradeUrl + "?version=" + HttpUtility.UrlEncode(UmbracoVersion.Current.ToString(3));
}
}
}