PageRenderTime 120ms CodeModel.GetById 112ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/BlogEngine/DotNetSlave.BusinessLogic/Json/JsonResponse.cs

#
C# | 52 lines | 19 code | 9 blank | 24 comment | 0 complexity | d00bb3a8aad562c3f640ef5fb5a438b3 MD5 | raw file
 1namespace BlogEngine.Core.Json
 2{
 3    /// <summary>
 4    /// JSON response.
 5    /// </summary>
 6    public class JsonResponse
 7    {
 8        #region Properties
 9
10        /// <summary>
11        ///     Gets or sets Data.
12        /// </summary>
13        public string Data { get; set; }
14
15        /// <summary>
16        ///     Gets or sets Message.
17        /// </summary>
18        public string Message { get; set; }
19
20        /// <summary>
21        ///     Gets or sets a value indicating whether Success.
22        /// </summary>
23        public bool Success { get; set; }
24
25        #endregion
26    }
27
28    /// <summary>
29    /// JSON response with a strongly typed data.
30    /// </summary>
31    public class JsonResponse<T>
32    {
33        #region Properties
34
35        /// <summary>
36        ///     Gets or sets Data.
37        /// </summary>
38        public T Data { get; set; }
39
40        /// <summary>
41        ///     Gets or sets Message.
42        /// </summary>
43        public string Message { get; set; }
44
45        /// <summary>
46        ///     Gets or sets a value indicating whether Success.
47        /// </summary>
48        public bool Success { get; set; }
49
50        #endregion
51    }
52}