WIP on updates notifications

This commit is contained in:
perploug
2013-10-19 15:07:02 +02:00
parent e0e5aef43e
commit aedb17781b
5 changed files with 57 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
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
{
public class UpgradeCheckResponse
{
[DataMember(Name = "type")]
public string Type { get; set; }
[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));
}
}
}