C# Class ApiCore.Offers.OffersFactory

Represent Offers wrapper
Inheritance: BaseFactory
Mostra file Open project: nolka/vkdotnet

Public Methods

Method 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

Method Description
buildFriendsEntryList ( XmlDocument x ) : List
buildFriendsInboundResponsesEntryList ( XmlDocument x ) : List
buildFriendsOutboundResponsesEntryList ( XmlDocument x ) : List

Method Details

Accept() public method

Accept friend offer
public Accept ( int offer_uid ) : bool
offer_uid int friend id to accept offer
return bool

Close() public method

Close your offer from friends
public Close ( ) : bool
return bool

DeleteResponses() public method

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

Edit() public method

Edit your own offer message
public Edit ( string message ) : bool
message string offer message
return bool

Get() public method

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

GetInboundResponses() public method

public GetInboundResponses ( int count, int offset ) : List
count int
offset int
return List

GetOutboundResponses() public method

public GetOutboundResponses ( int count, int offset ) : List
count int
offset int
return List

OffersFactory() public method

Constructor
public OffersFactory ( ApiManager manager ) : System
manager ApiManager ApiManager instance
return System

Open() public method

Open to public your friends
public Open ( ) : bool
return bool

Refuse() public method

Refuse friend offer
public Refuse ( int offer_uid ) : bool
offer_uid int friend id to refuse
return bool

SetResponseViewed() public method

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
return bool