C# Class ApiCore.Questions.QuestionsFactory

Inheritance: BaseFactory
Afficher le fichier Open project: nolka/vkdotnet

Méthodes publiques

Méthode 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

Méthode Description
buildQuestionAnswersList ( XmlDocument x ) : List
buildQuestionEntryList ( XmlDocument x ) : List
buildQuestionTypeList ( XmlDocument x ) : List
buildQuestionVotersList ( XmlDocument x ) : List

Method Details

Add() public méthode

public Add ( string text, int type ) : bool
text string
type int
Résultat bool

AddAnswer() public méthode

public AddAnswer ( int u_id, int q_id, string text ) : bool
u_id int
q_id int
text string
Résultat bool

Delete() public méthode

public Delete ( int q_id ) : bool
q_id int
Résultat bool

DeleteAnswer() public méthode

public DeleteAnswer ( int u_id, int a_id ) : bool
u_id int
a_id int
Résultat bool

Edit() public méthode

public Edit ( int q_id, string text, int type ) : bool
q_id int
text string
type int
Résultat bool

Get() public méthode

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
Résultat List

GetAnswerVotes() public méthode

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
Résultat List

GetAnswers() public méthode

public GetAnswers ( int qid, QuestionSortMode sort, int needProfiles, int count, int offset ) : List
qid int
sort QuestionSortMode
needProfiles int
count int
offset int
Résultat List

GetOutbound() public méthode

public GetOutbound ( QuestionSortMode sort, int needProfiles, string nameCase, int count, int offset ) : List
sort QuestionSortMode
needProfiles int
nameCase string
count int
offset int
Résultat List

GetTypes() public méthode

public GetTypes ( ) : List
Résultat List

JoinAnswer() public méthode

public JoinAnswer ( int u_id, int a_id ) : bool
u_id int
a_id int
Résultat bool

MarkAsViewed() public méthode

public MarkAsViewed ( object qid ) : bool
qid object
Résultat bool

QuestionsFactory() public méthode

public QuestionsFactory ( ApiManager manager ) : System
manager ApiManager
Résultat System