C# Класс ApiCore.Wall.WallFactory

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

Открытые свойства

Свойство Тип Описание
PostsCount int

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

Метод Описание
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

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

Метод Описание
buildEntryList ( XmlDocument x ) : List
getAttachment ( XmlNode fromPost ) : Attachment
getAttachmentData ( AttachmentType type, XmlNode attachmentData ) : AttachmentData

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

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

public AddComment ( int ownerId, int postId, string msg, int replyToCid ) : int
ownerId int
postId int
msg string
replyToCid int
Результат int

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

public AddLike ( int postId, bool needPublish ) : int
postId int
needPublish bool
Результат int

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

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
Результат bool

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

public DeleteComment ( int ownerId, int commentId ) : bool
ownerId int
commentId int
Результат bool

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

public DeleteLike ( int postId ) : int
postId int
Результат int

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

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
Результат List

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

public GetComments ( int ownerId, int postId, SortOrder sortOrder, int offset, int count ) : List
ownerId int
postId int
sortOrder SortOrder
offset int
count int
Результат List

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

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
Результат int

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

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
Результат bool

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

public RestoreComment ( int ownerId, int commentId ) : bool
ownerId int
commentId int
Результат bool

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

public WallFactory ( ApiManager manager ) : System
manager ApiManager
Результат System

Описание свойств

PostsCount публичное свойство

public int PostsCount
Результат int