PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Models/VoteRecord.cs

#
C# | 28 lines | 14 code | 5 blank | 9 comment | 0 complexity | d716cb8dc6d86ca55b151b1e48b4d35b MD5 | raw file
 1using System;
 2using Orchard.ContentManagement.Records;
 3
 4namespace Contrib.Voting.Models {
 5    public class VoteRecord {
 6        public virtual int Id { get; set; }
 7        public virtual DateTime? CreatedUtc { get; set; }
 8        public virtual ContentItemRecord ContentItemRecord { get; set; }
 9        public virtual string ContentType { get; set; }
10        public virtual string Username { get; set; }
11
12
13        /// <summary>
14        /// The IP address of the host the vote was cast from
15        /// </summary>
16        public virtual string Hostname { get; set; }
17
18        /// <summary>
19        /// The actual vote
20        /// </summary>
21        public virtual double Value { get; set; }
22
23        /// <summary>
24        /// A text representing the axe on which the vote is applied (i.e Quality, Support, ...). 'null' is the default value for an 'overall' vote.
25        /// </summary>
26        public virtual string Dimension { get; set; }
27    }
28}