2014-07-16 20:35:03 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Configuration;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
2015-07-02 14:42:18 +02:00
|
|
|
using Yavsc.Model.Circles;
|
|
|
|
|
using System.Web.Mvc;
|
2014-07-16 20:35:03 +02:00
|
|
|
|
2014-10-06 04:58:47 +02:00
|
|
|
namespace Yavsc.Model.Blogs
|
2014-07-16 20:35:03 +02:00
|
|
|
{
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Blog entry.
|
|
|
|
|
/// </summary>
|
2015-10-13 22:53:39 +02:00
|
|
|
public class BlogEntry : BasePost {
|
2014-07-16 20:35:03 +02:00
|
|
|
|
2015-10-08 12:43:04 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the photo.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The photo.</value>
|
|
|
|
|
public string Photo {
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
|
|
|
|
|
2014-07-16 20:35:03 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
string content;
|
|
|
|
|
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the content.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The content.</value>
|
2014-07-16 20:35:03 +02:00
|
|
|
[DisplayName("Corps du billet")]
|
|
|
|
|
[Required(ErrorMessage = "S'il vous plait, saisissez un texte.")]
|
|
|
|
|
public string Content {
|
|
|
|
|
get {
|
|
|
|
|
return content;
|
|
|
|
|
}
|
|
|
|
|
set {
|
|
|
|
|
content = value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2015-07-02 14:42:18 +02:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the circles allowed to read this ticket.
|
|
|
|
|
/// An empty collection specifies a public post.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The circles.</value>
|
|
|
|
|
[Display(Name="Cercles autorisés")]
|
|
|
|
|
public long[] AllowedCircles { get; set; }
|
|
|
|
|
|
2015-02-17 13:57:39 +01:00
|
|
|
/// <summary>
|
|
|
|
|
/// Gets or sets the tags.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <value>The tags.</value>
|
2014-07-16 20:35:03 +02:00
|
|
|
public string [] Tags { get; set ; }
|
2015-07-02 14:42:18 +02:00
|
|
|
|
|
|
|
|
|
2014-07-16 20:35:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|