Documentation et fiche préstataire
Une nouvelle page de doc : la page des fonctionalités, [Features.md](Features.md), au format Markdown. * p8-av4.jpg: * p8-av4.l.jpg: * p8-av4.xs.jpg: p8-av4 * Performer.ascx: Implémente la fiche préstataire, avec son éventuel lien vers le blog * ITContentProvider.csproj: ... * NpgsqlBlogProvider.cs: implémente le compteur de billet en base de données * Presta.csproj: * TestAPI.csproj: * YavscClient.csproj: * fortune.csproj: * WebControls.csproj: * SalesCatalog.csproj: * NpgsqlMRPProviders.csproj: * NpgsqlBlogProvider.csproj: * NpgsqlContentProvider.csproj: ... * README.md: mise à jour des priorités * Yavsc.sln: ajout du fichier "Features.md" à la solution * BlogProvider.cs: doc xml * BlogManager.cs: implémente un accès au compteur de billet
This commit is contained in:
parent
dbcbf8b318
commit
e8bf2dd8fa
32 changed files with 156 additions and 38 deletions
|
|
@ -95,6 +95,11 @@ namespace Yavsc.Model.Blogs
|
|||
{
|
||||
Provider.UpdatePost (postid, title, content, visible, cids);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Updates the post.
|
||||
/// </summary>
|
||||
/// <param name="be">Be.</param>
|
||||
public static void UpdatePost (BlogEntry be)
|
||||
{
|
||||
Provider.UpdatePost (be);
|
||||
|
|
@ -203,7 +208,11 @@ namespace Yavsc.Model.Blogs
|
|||
Provider.Tag (postid, tag);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Rate the specified postid and rate.
|
||||
/// </summary>
|
||||
/// <param name="postid">Postid.</param>
|
||||
/// <param name="rate">Rate.</param>
|
||||
public static void Rate (long postid, int rate)
|
||||
{
|
||||
Provider.Rate (postid, rate);
|
||||
|
|
@ -323,6 +332,15 @@ namespace Yavsc.Model.Blogs
|
|||
var r = bec.Where (x => CanView (x as BlogEntry, u));
|
||||
return r;
|
||||
}
|
||||
/// <summary>
|
||||
/// Gets the post counter.
|
||||
/// </summary>
|
||||
/// <returns>The count.</returns>
|
||||
/// <param name="bloggerName">Blogger name.</param>
|
||||
public static long GetPostCounter(string bloggerName)
|
||||
{
|
||||
return Provider.GetPublicPostCount (bloggerName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -12,6 +12,13 @@ namespace Yavsc.Model.Blogs
|
|||
/// </summary>
|
||||
public abstract class BlogProvider: ProviderBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets the public post count.
|
||||
/// </summary>
|
||||
/// <returns>The public post count.</returns>
|
||||
/// <param name="bloggerName">Blogger name.</param>
|
||||
public abstract long GetPublicPostCount (string bloggerName);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the post.
|
||||
/// </summary>
|
||||
|
|
|
|||
|
|
@ -1,3 +1,9 @@
|
|||
2015-11-30 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* BlogProvider.cs: doc xml
|
||||
|
||||
* BlogManager.cs: implémente un accès au compteur de billet
|
||||
|
||||
2015-11-30 Paul Schneider <paul@pschneider.fr>
|
||||
|
||||
* PerformerProfile.cs: doc xml
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue