refactoring
This commit is contained in:
parent
347ffc8a5a
commit
b5d19c5da6
38 changed files with 149 additions and 117 deletions
33
yavscModel/Blogs/BlogProvider.cs
Normal file
33
yavscModel/Blogs/BlogProvider.cs
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
using System.Configuration.Provider;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Yavsc.Model.Blogs
|
||||
{
|
||||
public abstract class BlogProvider: ProviderBase
|
||||
{
|
||||
public abstract BlogEntry GetPost (long postid);
|
||||
public abstract BlogEntry GetPost (string username, string title);
|
||||
public abstract long GetPostId (string username, string title);
|
||||
|
||||
public abstract long Post (string username, string title, string content, bool visible);
|
||||
public abstract void UpdatePost (long postid, string content, bool visible);
|
||||
public abstract BlogEntryCollection FindPost (string pattern, FindBlogEntryFlags searchflags,
|
||||
int pageIndex, int pageSize, out int totalRecords);
|
||||
public abstract void RemovePost (string username, string title);
|
||||
public abstract void RemovePost (long postid);
|
||||
public abstract long RemoveComment (long cmtid);
|
||||
public abstract BlogEntryCollection LastPosts(int pageIndex, int pageSize, out int totalRecords);
|
||||
public abstract string BlogTitle (string username);
|
||||
public abstract long Comment (string from, long postid, string content);
|
||||
public abstract Comment[] GetComments (long postid, bool getHidden) ;
|
||||
public abstract bool AutoValidateComment { get; set; }
|
||||
public abstract void ValidateComment (long cmtid);
|
||||
public abstract void UpdateComment (long cmtid, string content, bool visible);
|
||||
public abstract long Tag (long postid,string tag);
|
||||
public abstract void RemoveTag (long tagid);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue