C# Класс ApiCore.Questions.QuestionsFactory

Наследование: BaseFactory
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
buildQuestionAnswersList ( XmlDocument x ) : List
buildQuestionEntryList ( XmlDocument x ) : List
buildQuestionTypeList ( XmlDocument x ) : List
buildQuestionVotersList ( XmlDocument x ) : List

Описание методов

Add() публичный Метод

public Add ( string text, int type ) : bool
text string
type int
Результат bool

AddAnswer() публичный Метод

public AddAnswer ( int u_id, int q_id, string text ) : bool
u_id int
q_id int
text string
Результат bool

Delete() публичный Метод

public Delete ( int q_id ) : bool
q_id int
Результат bool

DeleteAnswer() публичный Метод

public DeleteAnswer ( int u_id, int a_id ) : bool
u_id int
a_id int
Результат bool

Edit() публичный Метод

public Edit ( int q_id, string text, int type ) : bool
q_id int
text string
type int
Результат bool

Get() публичный Метод

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
Результат List

GetAnswerVotes() публичный Метод

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
Результат List

GetAnswers() публичный Метод

public GetAnswers ( int qid, QuestionSortMode sort, int needProfiles, int count, int offset ) : List
qid int
sort QuestionSortMode
needProfiles int
count int
offset int
Результат List

GetOutbound() публичный Метод

public GetOutbound ( QuestionSortMode sort, int needProfiles, string nameCase, int count, int offset ) : List
sort QuestionSortMode
needProfiles int
nameCase string
count int
offset int
Результат List

GetTypes() публичный Метод

public GetTypes ( ) : List
Результат List

JoinAnswer() публичный Метод

public JoinAnswer ( int u_id, int a_id ) : bool
u_id int
a_id int
Результат bool

MarkAsViewed() публичный Метод

public MarkAsViewed ( object qid ) : bool
qid object
Результат bool

QuestionsFactory() публичный Метод

public QuestionsFactory ( ApiManager manager ) : System
manager ApiManager
Результат System