C# Class ApiCore.Offers.OffersFactory

Represent Offers wrapper
Inheritance: BaseFactory
Afficher le fichier Open project: nolka/vkdotnet

Méthodes publiques

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

Private Methods

Méthode Description
buildFriendsEntryList ( XmlDocument x ) : List
buildFriendsInboundResponsesEntryList ( XmlDocument x ) : List
buildFriendsOutboundResponsesEntryList ( XmlDocument x ) : List

Method Details

Accept() public méthode

Accept friend offer
public Accept ( int offer_uid ) : bool
offer_uid int friend id to accept offer
Résultat bool

Close() public méthode

Close your offer from friends
public Close ( ) : bool
Résultat bool

DeleteResponses() public méthode

Delete offer responses from friends
public DeleteResponses ( string offer_uids ) : bool
offer_uids string friends ids to delete responses
Résultat bool

Edit() public méthode

Edit your own offer message
public Edit ( string message ) : bool
message string offer message
Résultat bool

Get() public méthode

Get offer of current user
public Get ( string userIds ) : List
userIds string is set, returns user friends offers. specify user ids as comma-separated
Résultat List

GetInboundResponses() public méthode

public GetInboundResponses ( int count, int offset ) : List
count int
offset int
Résultat List

GetOutboundResponses() public méthode

public GetOutboundResponses ( int count, int offset ) : List
count int
offset int
Résultat List

OffersFactory() public méthode

Constructor
public OffersFactory ( ApiManager manager ) : System
manager ApiManager ApiManager instance
Résultat System

Open() public méthode

Open to public your friends
public Open ( ) : bool
Résultat bool

Refuse() public méthode

Refuse friend offer
public Refuse ( int offer_uid ) : bool
offer_uid int friend id to refuse
Résultat bool

SetResponseViewed() public méthode

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