diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 6e1abed21..9f52f2b33 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -15,11 +15,11 @@ 1.0.0 {HintPathFromItem};{TargetFrameworkDirectory};{RawFileName};{GAC}; true - false + true $(registry:HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion@ProductName) true - false + true @@ -48,7 +48,7 @@ True - + + /// Title of the image + /// [JsonProperty("title")] public string Title { get; set; } + /// + /// Description of the image + /// [JsonProperty("description")] public string Description { get; set; } + /// + /// Date created + /// [JsonProperty("datetime"), JsonConverter(typeof(UnixDateTimeConverter))] public DateTime Datetime { get; set; } + /// + /// Type of image + /// [JsonProperty("type")] public string Type { get; set; } + /// + /// Specifies if the image is animated + /// [JsonProperty("animated")] public bool Animated { get; set; } + /// + /// The width of the image + /// [JsonProperty("width")] public long Width { get; set; } + /// + /// The height of the image + /// [JsonProperty("height")] public long Height { get; set; } + /// + /// The size of the image + /// [JsonProperty("size")] public long Size { get; set; } + /// + /// How many times is this image viewed + /// [JsonProperty("views")] public long Views { get; set; } diff --git a/src/Greenshot.Addon.Imgur/Entities/ImgurImage.cs b/src/Greenshot.Addon.Imgur/Entities/ImgurImage.cs index afb723e4c..26e64732d 100644 --- a/src/Greenshot.Addon.Imgur/Entities/ImgurImage.cs +++ b/src/Greenshot.Addon.Imgur/Entities/ImgurImage.cs @@ -1,23 +1,46 @@ -using System.Windows.Media; -using Newtonsoft.Json; - -namespace Greenshot.Addon.Imgur.Entities -{ +#region Greenshot GNU General Public License + +// Greenshot - a free and open source screenshot tool +// Copyright (C) 2007-2018 Thomas Braun, Jens Klingen, Robin Krom +// +// For more information see: http://getgreenshot.org/ +// The Greenshot project is hosted on GitHub https://github.com/greenshot/greenshot +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 1 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +#endregion + +using System.Windows.Media; +using Newtonsoft.Json; + +namespace Greenshot.Addon.Imgur.Entities +{ /// /// Information on the imgur image - /// - public class ImgurImage - { - [JsonIgnore] - public ImageSource Image { get; set; } - - [JsonProperty("data")] - public ImgurData Data { get; set; } - - [JsonProperty("success")] - public bool Success { get; set; } - - [JsonProperty("status")] - public long Status { get; set; } - } -} + /// + public class ImgurImage + { + [JsonIgnore] + public ImageSource Image { get; set; } + + [JsonProperty("data")] + public ImgurData Data { get; set; } + + [JsonProperty("success")] + public bool Success { get; set; } + + [JsonProperty("status")] + public long Status { get; set; } + } +}