C# Class ApiCore.Questions.QuestionsFactory

Inheritance: BaseFactory
Datei anzeigen Open project: nolka/vkdotnet

Public Methods

Method Description
Add ( string text, int type ) : bool
AddAnswer ( int u_id, int q_id, string text ) : bool
Delete ( int q_id ) : bool
DeleteAnswer ( int u_id, int a_id ) : bool
Edit ( int q_id, string text, int type ) : bool
Get ( object qid, QuestionSortMode sort, int needProfiles, string nameCase, int count, int offset ) : List
GetAnswerVotes ( int uid, int aid, QuestionSortMode sort, int needProfiles, int count, int offset ) : List
GetAnswers ( int qid, QuestionSortMode sort, int needProfiles, int count, int offset ) : List
GetOutbound ( QuestionSortMode sort, int needProfiles, string nameCase, int count, int offset ) : List
GetTypes ( ) : List
JoinAnswer ( int u_id, int a_id ) : bool
MarkAsViewed ( object qid ) : bool
QuestionsFactory ( ApiManager manager ) : System

Private Methods

Method Description
buildQuestionAnswersList ( XmlDocument x ) : List
buildQuestionEntryList ( XmlDocument x ) : List
buildQuestionTypeList ( XmlDocument x ) : List
buildQuestionVotersList ( XmlDocument x ) : List

Method Details

Add() public method

public Add ( string text, int type ) : bool
text string
type int
return bool

AddAnswer() public method

public AddAnswer ( int u_id, int q_id, string text ) : bool
u_id int
q_id int
text string
return bool

Delete() public method

public Delete ( int q_id ) : bool
q_id int
return bool

DeleteAnswer() public method

public DeleteAnswer ( int u_id, int a_id ) : bool
u_id int
a_id int
return bool

Edit() public method

public Edit ( int q_id, string text, int type ) : bool
q_id int
text string
type int
return bool

Get() public method

public Get ( object qid, QuestionSortMode sort, int needProfiles, string nameCase, int count, int offset ) : List
qid object
sort QuestionSortMode
needProfiles int
nameCase string
count int
offset int
return List

GetAnswerVotes() public method

public GetAnswerVotes ( int uid, int aid, QuestionSortMode sort, int needProfiles, int count, int offset ) : List
uid int
aid int
sort QuestionSortMode
needProfiles int
count int
offset int
return List

GetAnswers() public method

public GetAnswers ( int qid, QuestionSortMode sort, int needProfiles, int count, int offset ) : List
qid int
sort QuestionSortMode
needProfiles int
count int
offset int
return List

GetOutbound() public method

public GetOutbound ( QuestionSortMode sort, int needProfiles, string nameCase, int count, int offset ) : List
sort QuestionSortMode
needProfiles int
nameCase string
count int
offset int
return List

GetTypes() public method

public GetTypes ( ) : List
return List

JoinAnswer() public method

public JoinAnswer ( int u_id, int a_id ) : bool
u_id int
a_id int
return bool

MarkAsViewed() public method

public MarkAsViewed ( object qid ) : bool
qid object
return bool

QuestionsFactory() public method

public QuestionsFactory ( ApiManager manager ) : System
manager ApiManager
return System