WIP on updates notifications
This commit is contained in:
30
src/Umbraco.Web/Models/UpgradeCheckResponse.cs
Normal file
30
src/Umbraco.Web/Models/UpgradeCheckResponse.cs
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user