C# Class ApiCore.Wall.WallFactory

Inheritance: BaseFactory
显示文件 Open project: nolka/vkdotnet Class Usage Examples

Public Properties

Property Type Description
PostsCount int

Public Methods

Method Description
AddComment ( int ownerId, int postId, string msg, int replyToCid ) : int

AddLike ( int postId, bool needPublish ) : int

Delete ( int ownerId, int msg_id ) : bool

Delete wall post

DeleteComment ( int ownerId, int commentId ) : bool

DeleteLike ( int postId ) : int

Get ( int ownerId, int count, int offset, string filter ) : List

Get wall entries

GetComments ( int ownerId, int postId, SortOrder sortOrder, int offset, int count ) : List

Post ( int ownerId, string message ) : int

Post message in the wall

Restore ( int ownerId, int msg_id ) : bool

Restore deleted entry

RestoreComment ( int ownerId, int commentId ) : bool

WallFactory ( ApiManager manager ) : System

Private Methods

Method Description
buildEntryList ( XmlDocument x ) : List
getAttachment ( XmlNode fromPost ) : Attachment
getAttachmentData ( AttachmentType type, XmlNode attachmentData ) : AttachmentData

Method Details

AddComment() public method

public AddComment ( int ownerId, int postId, string msg, int replyToCid ) : int
ownerId int
postId int
msg string
replyToCid int
return int

AddLike() public method

public AddLike ( int postId, bool needPublish ) : int
postId int
needPublish bool
return int

Delete() public method

Delete wall post
public Delete ( int ownerId, int msg_id ) : bool
ownerId int if null - wall entry for current user will be deleted, else - for specified user
msg_id int post id to delete
return bool

DeleteComment() public method

public DeleteComment ( int ownerId, int commentId ) : bool
ownerId int
commentId int
return bool

DeleteLike() public method

public DeleteLike ( int postId ) : int
postId int
return int

Get() public method

Get wall entries
public Get ( int ownerId, int count, int offset, string filter ) : List
ownerId int if null - wall entries for current user will be returned, else - for specified user
count int messages count. null allowed
offset int message offset. null allowed
filter string
return List

GetComments() public method

public GetComments ( int ownerId, int postId, SortOrder sortOrder, int offset, int count ) : List
ownerId int
postId int
sortOrder SortOrder
offset int
count int
return List

Post() public method

Post message in the wall
public Post ( int ownerId, string message ) : int
ownerId int if null - wall entry for current user will be posted, else - for specified user
message string message to be posted
return int

Restore() public method

Restore deleted entry
public Restore ( int ownerId, int msg_id ) : bool
ownerId int if null - wall entry for current user will be restored, else - for specified user
msg_id int post id to restore
return bool

RestoreComment() public method

public RestoreComment ( int ownerId, int commentId ) : bool
ownerId int
commentId int
return bool

WallFactory() public method

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

Property Details

PostsCount public_oe property

public int PostsCount
return int