C# Class ForumServer.ServerNetworkAdaptor

Inheritance: IForumService
Exibir arquivo Open project: sagioto/forum Class Usage Examples

Public Methods

Method Description
Activate ( string username, string password ) : System.Result
AddModerator ( string adminUsername, string adminPassword, string usernameToAdd, string subforum ) : System.Result
AddSubforum ( string adminUsername, string adminPassword, string subforumName ) : System.Result
Ban ( string usernameToBan, string modUsername, string modPassword ) : System.Result
Deactivate ( string username, string password ) : System.Result
EditPost ( Postkey oldPost, Post newPost, string username, string password ) : System.Result
GetModerators ( string subforum ) : string[]
GetNumOfLoggedInUsers ( ) : int
GetPost ( Postkey postkey ) : Post
GetReplies ( Postkey postkey ) : ForumShared.SharedDataTypes.Post[]
GetShouldBeBannedUsers ( ) : string[]
GetSubforum ( string subforum ) : ForumShared.SharedDataTypes.Post[]
GetSubforumsList ( ) : string[]
ListenOnForum ( string username, string subForumName ) : bool
Login ( String username, String password ) : AuthorizationLevel
Logout ( String username ) : System.Result
Post ( string currentSubforum, Post toPost ) : System.Result
Register ( String username, String password ) : System.Result
RemoveModerator ( string adminUsername, string adminPassword, string usernameToRemove, string subforum ) : System.Result
RemovePost ( Postkey postkey, string username, string password ) : System.Result
RemoveSubforum ( string adminUsername, string adminPassword, string subforumName ) : System.Result
ReplaceAdmin ( string oldAdminUsername, string oldAdminPassword, string newAdminUsername, string newAdminPassword ) : System.Result
ReplaceModerator ( string adminUsername, string adminPassword, string usernameToAdd, string usernameToRemove, string subforum ) : System.Result
Reply ( Postkey current, Post toPost ) : System.Result
ReportSubForumTotalPosts ( string adminUsername, string adminPassword, string subforumName ) : int
ReportUserTotalPosts ( string adminUsername, string adminPassword, string username ) : int
Search ( string query ) : ForumShared.SharedDataTypes.Post[]
Subscribe ( string username ) : Post

Method Details

Activate() public method

public Activate ( string username, string password ) : System.Result
username string
password string
return System.Result

AddModerator() public method

public AddModerator ( string adminUsername, string adminPassword, string usernameToAdd, string subforum ) : System.Result
adminUsername string
adminPassword string
usernameToAdd string
subforum string
return System.Result

AddSubforum() public method

public AddSubforum ( string adminUsername, string adminPassword, string subforumName ) : System.Result
adminUsername string
adminPassword string
subforumName string
return System.Result

Ban() public method

public Ban ( string usernameToBan, string modUsername, string modPassword ) : System.Result
usernameToBan string
modUsername string
modPassword string
return System.Result

Deactivate() public method

public Deactivate ( string username, string password ) : System.Result
username string
password string
return System.Result

EditPost() public method

public EditPost ( Postkey oldPost, Post newPost, string username, string password ) : System.Result
oldPost Postkey
newPost ForumShared.SharedDataTypes.Post
username string
password string
return System.Result

GetModerators() public method

public GetModerators ( string subforum ) : string[]
subforum string
return string[]

GetNumOfLoggedInUsers() public method

public GetNumOfLoggedInUsers ( ) : int
return int

GetPost() public method

public GetPost ( Postkey postkey ) : Post
postkey Postkey
return ForumShared.SharedDataTypes.Post

GetReplies() public method

public GetReplies ( Postkey postkey ) : ForumShared.SharedDataTypes.Post[]
postkey Postkey
return ForumShared.SharedDataTypes.Post[]

GetShouldBeBannedUsers() public method

public GetShouldBeBannedUsers ( ) : string[]
return string[]

GetSubforum() public method

public GetSubforum ( string subforum ) : ForumShared.SharedDataTypes.Post[]
subforum string
return ForumShared.SharedDataTypes.Post[]

GetSubforumsList() public method

public GetSubforumsList ( ) : string[]
return string[]

ListenOnForum() public method

public ListenOnForum ( string username, string subForumName ) : bool
username string
subForumName string
return bool

Login() public method

public Login ( String username, String password ) : AuthorizationLevel
username String
password String
return AuthorizationLevel

Logout() public method

public Logout ( String username ) : System.Result
username String
return System.Result

Post() public method

public Post ( string currentSubforum, Post toPost ) : System.Result
currentSubforum string
toPost ForumShared.SharedDataTypes.Post
return System.Result

Register() public method

public Register ( String username, String password ) : System.Result
username String
password String
return System.Result

RemoveModerator() public method

public RemoveModerator ( string adminUsername, string adminPassword, string usernameToRemove, string subforum ) : System.Result
adminUsername string
adminPassword string
usernameToRemove string
subforum string
return System.Result

RemovePost() public method

public RemovePost ( Postkey postkey, string username, string password ) : System.Result
postkey Postkey
username string
password string
return System.Result

RemoveSubforum() public method

public RemoveSubforum ( string adminUsername, string adminPassword, string subforumName ) : System.Result
adminUsername string
adminPassword string
subforumName string
return System.Result

ReplaceAdmin() public method

public ReplaceAdmin ( string oldAdminUsername, string oldAdminPassword, string newAdminUsername, string newAdminPassword ) : System.Result
oldAdminUsername string
oldAdminPassword string
newAdminUsername string
newAdminPassword string
return System.Result

ReplaceModerator() public method

public ReplaceModerator ( string adminUsername, string adminPassword, string usernameToAdd, string usernameToRemove, string subforum ) : System.Result
adminUsername string
adminPassword string
usernameToAdd string
usernameToRemove string
subforum string
return System.Result

Reply() public method

public Reply ( Postkey current, Post toPost ) : System.Result
current Postkey
toPost ForumShared.SharedDataTypes.Post
return System.Result

ReportSubForumTotalPosts() public method

public ReportSubForumTotalPosts ( string adminUsername, string adminPassword, string subforumName ) : int
adminUsername string
adminPassword string
subforumName string
return int

ReportUserTotalPosts() public method

public ReportUserTotalPosts ( string adminUsername, string adminPassword, string username ) : int
adminUsername string
adminPassword string
username string
return int

Search() public method

public Search ( string query ) : ForumShared.SharedDataTypes.Post[]
query string
return ForumShared.SharedDataTypes.Post[]

Subscribe() public method

public Subscribe ( string username ) : Post
username string
return ForumShared.SharedDataTypes.Post