C# 클래스 ForumServer.ServerNetworkAdaptor

상속: IForumService
파일 보기 프로젝트 열기: sagioto/forum 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

Activate() 공개 메소드

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

AddModerator() 공개 메소드

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

AddSubforum() 공개 메소드

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

Ban() 공개 메소드

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

Deactivate() 공개 메소드

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

EditPost() 공개 메소드

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

GetModerators() 공개 메소드

public GetModerators ( string subforum ) : string[]
subforum string
리턴 string[]

GetNumOfLoggedInUsers() 공개 메소드

public GetNumOfLoggedInUsers ( ) : int
리턴 int

GetPost() 공개 메소드

public GetPost ( Postkey postkey ) : Post
postkey Postkey
리턴 ForumShared.SharedDataTypes.Post

GetReplies() 공개 메소드

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

GetShouldBeBannedUsers() 공개 메소드

public GetShouldBeBannedUsers ( ) : string[]
리턴 string[]

GetSubforum() 공개 메소드

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

GetSubforumsList() 공개 메소드

public GetSubforumsList ( ) : string[]
리턴 string[]

ListenOnForum() 공개 메소드

public ListenOnForum ( string username, string subForumName ) : bool
username string
subForumName string
리턴 bool

Login() 공개 메소드

public Login ( String username, String password ) : AuthorizationLevel
username String
password String
리턴 AuthorizationLevel

Logout() 공개 메소드

public Logout ( String username ) : System.Result
username String
리턴 System.Result

Post() 공개 메소드

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

Register() 공개 메소드

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

RemoveModerator() 공개 메소드

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

RemovePost() 공개 메소드

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

RemoveSubforum() 공개 메소드

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

ReplaceAdmin() 공개 메소드

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

ReplaceModerator() 공개 메소드

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

Reply() 공개 메소드

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

ReportSubForumTotalPosts() 공개 메소드

public ReportSubForumTotalPosts ( string adminUsername, string adminPassword, string subforumName ) : int
adminUsername string
adminPassword string
subforumName string
리턴 int

ReportUserTotalPosts() 공개 메소드

public ReportUserTotalPosts ( string adminUsername, string adminPassword, string username ) : int
adminUsername string
adminPassword string
username string
리턴 int

Search() 공개 메소드

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

Subscribe() 공개 메소드

public Subscribe ( string username ) : Post
username string
리턴 ForumShared.SharedDataTypes.Post