C# Class ApiCore.Activity.ActivityFactory

Represents an a Vkontakte activity manager, that can get, or set user activities and actoivities of her friends
Inheritance: BaseFactory
Datei anzeigen Open project: nolka/vkdotnet

Public Methods

Method Description
ActivityFactory ( ApiManager manager ) : System
Get ( int userId ) : ActivityEntry

Gets the current activity

GetHistory ( int userId ) : List

Gets the activity history for current user or friend

Set ( string message ) : int

Sets the current user activity

Private Methods

Method Description
buildEntryList ( XmlDocument x ) : List

Method Details

ActivityFactory() public method

public ActivityFactory ( ApiManager manager ) : System
manager ApiManager
return System

Get() public method

Gets the current activity
public Get ( int userId ) : ActivityEntry
userId int if null - current user activity was been returned, if specified - friend activity was been returned
return ActivityEntry

GetHistory() public method

Gets the activity history for current user or friend
public GetHistory ( int userId ) : List
userId int if null - current user history was been returned, if specified - friend history was been returned
return List

Set() public method

Sets the current user activity
public Set ( string message ) : int
message string Activity message
return int