C# Класс ApiCore.Offers.OffersFactory

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

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

Метод Описание
Accept ( int offer_uid ) : bool

Accept friend offer

Close ( ) : bool

Close your offer from friends

DeleteResponses ( string offer_uids ) : bool

Delete offer responses from friends

Edit ( string message ) : bool

Edit your own offer message

Get ( string userIds ) : List

Get offer of current user

GetInboundResponses ( int count, int offset ) : List

GetOutboundResponses ( int count, int offset ) : List

OffersFactory ( ApiManager manager ) : System

Constructor

Open ( ) : bool

Open to public your friends

Refuse ( int offer_uid ) : bool

Refuse friend offer

SetResponseViewed ( string offer_uids ) : bool

Sets responses to your offer as viewed

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

Метод Описание
buildFriendsEntryList ( XmlDocument x ) : List
buildFriendsInboundResponsesEntryList ( XmlDocument x ) : List
buildFriendsOutboundResponsesEntryList ( XmlDocument x ) : List

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

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

Accept friend offer
public Accept ( int offer_uid ) : bool
offer_uid int friend id to accept offer
Результат bool

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

Close your offer from friends
public Close ( ) : bool
Результат bool

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

Delete offer responses from friends
public DeleteResponses ( string offer_uids ) : bool
offer_uids string friends ids to delete responses
Результат bool

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

Edit your own offer message
public Edit ( string message ) : bool
message string offer message
Результат bool

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

Get offer of current user
public Get ( string userIds ) : List
userIds string is set, returns user friends offers. specify user ids as comma-separated
Результат List

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

public GetInboundResponses ( int count, int offset ) : List
count int
offset int
Результат List

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

public GetOutboundResponses ( int count, int offset ) : List
count int
offset int
Результат List

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

Constructor
public OffersFactory ( ApiManager manager ) : System
manager ApiManager ApiManager instance
Результат System

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

Open to public your friends
public Open ( ) : bool
Результат bool

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

Refuse friend offer
public Refuse ( int offer_uid ) : bool
offer_uid int friend id to refuse
Результат bool

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

Sets responses to your offer as viewed
public SetResponseViewed ( string offer_uids ) : bool
offer_uids string comma-separated user id's, thats answers are viewed
Результат bool