C# Class kasthack.vksharp.Api.MethodGroup_Messages

Show file Open project: kasthack/kasthack.vksharp

Public Methods

Method Description
AddChatUser ( int userId, int chatId = null ) : System.Threading.Tasks.Task
AddChatUserSync ( int userId, int chatId = null ) : void
Delete ( ) : System.Threading.Tasks.Task
DeleteChatPhoto ( int chatId ) : System.Threading.Tasks.Task
DeleteChatPhotoSync ( int chatId ) : void
DeleteDialog ( int userId ) : System.Threading.Tasks.Task
DeleteDialogSync ( int userId ) : void
DeleteSync ( ) : void
Get ( int @out, int timeOffset, int filters, int previewLength, long lastMessageId = null, int offset = null, int count = 200 ) : Task>
GetDialogs ( long startMessageId = null, int previewLength = null, bool unread = null, int offset = null, int count = 20 ) : Task>

Возвращает список диалогов текущего пользователя или сообщества.

GetDialogsSync ( long startMessageId = null, int previewLength = null, bool unread = null, int offset = null, int count = 20 ) : EntityList

Возвращает список диалогов текущего пользователя или сообщества.

GetHistoryChat ( int chatId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : Task>
GetHistoryChatSync ( int chatId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : EntityList
GetHistoryUser ( int userId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : Task>
GetHistoryUserSync ( int userId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : EntityList
GetLastActivity ( int userId ) : Task
GetLastActivitySync ( int userId ) : LastActivity
GetSync ( int @out, int timeOffset, int filters, int previewLength, long lastMessageId = null, int offset = null, int count = 200 ) : EntityList
MarkAsImportant ( bool important ) : System.Threading.Tasks.Task
MarkAsImportantSync ( bool important ) : void
MarkAsRead ( int userId, int startMessageId = null ) : System.Threading.Tasks.Task
MarkAsReadSync ( int userId, int startMessageId = null ) : void
RemoveChatUser ( int userId, int chatId ) : System.Threading.Tasks.Task
RemoveChatUserSync ( int userId, int chatId ) : void
Restore ( int messageId ) : System.Threading.Tasks.Task
RestoreSync ( int messageId ) : void
Send ( int userId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
Send ( string domain, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
SendChat ( int chatId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
SendChatSync ( int chatId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
SendPeer ( long peerId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
SendPeerSync ( long peerId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
SendSync ( int userId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
SendSync ( string domain, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
SetActivity ( int userId, ImActivity type = ImActivity.Typing ) : System.Threading.Tasks.Task
SetActivitySync ( int userId, ImActivity type = ImActivity.Typing ) : void

Private Methods

Method Description
MethodGroup_Messages ( Api parent ) : System

Method Details

AddChatUser() public method

public AddChatUser ( int userId, int chatId = null ) : System.Threading.Tasks.Task
userId int
chatId int
return System.Threading.Tasks.Task

AddChatUserSync() public method

public AddChatUserSync ( int userId, int chatId = null ) : void
userId int
chatId int
return void

Delete() public method

public Delete ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

DeleteChatPhoto() public method

public DeleteChatPhoto ( int chatId ) : System.Threading.Tasks.Task
chatId int
return System.Threading.Tasks.Task

DeleteChatPhotoSync() public method

public DeleteChatPhotoSync ( int chatId ) : void
chatId int
return void

DeleteDialog() public method

public DeleteDialog ( int userId ) : System.Threading.Tasks.Task
userId int
return System.Threading.Tasks.Task

DeleteDialogSync() public method

public DeleteDialogSync ( int userId ) : void
userId int
return void

DeleteSync() public method

public DeleteSync ( ) : void
return void

Get() public method

public Get ( int @out, int timeOffset, int filters, int previewLength, long lastMessageId = null, int offset = null, int count = 200 ) : Task>
@out int
timeOffset int
filters int
previewLength int
lastMessageId long
offset int
count int
return Task>

GetDialogs() public method

Возвращает список диалогов текущего пользователя или сообщества.
public GetDialogs ( long startMessageId = null, int previewLength = null, bool unread = null, int offset = null, int count = 20 ) : Task>
startMessageId long Идентификатор сообщения, начиная с которого нужно вернуть список диалогов
previewLength int Количество символов, по которому нужно обрезать сообщение. (по умолчанию сообщения не обрезаются)
unread bool Вернуть только диалоги, в которых есть непрочитанные входящие сообщения
offset int Оффсет для возврата результатов
count int Количество записей, которые необходимо вернуть
return Task>

GetDialogsSync() public method

Возвращает список диалогов текущего пользователя или сообщества.
public GetDialogsSync ( long startMessageId = null, int previewLength = null, bool unread = null, int offset = null, int count = 20 ) : EntityList
startMessageId long Идентификатор сообщения, начиная с которого нужно вернуть список диалогов
previewLength int Количество символов, по которому нужно обрезать сообщение. (по умолчанию сообщения не обрезаются)
unread bool Вернуть только диалоги, в которых есть непрочитанные входящие сообщения
offset int Оффсет для возврата результатов
count int Количество записей, которые необходимо вернуть
return EntityList

GetHistoryChat() public method

public GetHistoryChat ( int chatId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : Task>
chatId int
rev bool
startMessageId long
offset int
count int
return Task>

GetHistoryChatSync() public method

public GetHistoryChatSync ( int chatId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : EntityList
chatId int
rev bool
startMessageId long
offset int
count int
return EntityList

GetHistoryUser() public method

public GetHistoryUser ( int userId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : Task>
userId int
rev bool
startMessageId long
offset int
count int
return Task>

GetHistoryUserSync() public method

public GetHistoryUserSync ( int userId, bool rev = false, long startMessageId = null, int offset = null, int count = 200 ) : EntityList
userId int
rev bool
startMessageId long
offset int
count int
return EntityList

GetLastActivity() public method

public GetLastActivity ( int userId ) : Task
userId int
return Task

GetLastActivitySync() public method

public GetLastActivitySync ( int userId ) : LastActivity
userId int
return kasthack.vksharp.DataTypes.ResponseEntities.LastActivity

GetSync() public method

public GetSync ( int @out, int timeOffset, int filters, int previewLength, long lastMessageId = null, int offset = null, int count = 200 ) : EntityList
@out int
timeOffset int
filters int
previewLength int
lastMessageId long
offset int
count int
return EntityList

MarkAsImportant() public method

public MarkAsImportant ( bool important ) : System.Threading.Tasks.Task
important bool
return System.Threading.Tasks.Task

MarkAsImportantSync() public method

public MarkAsImportantSync ( bool important ) : void
important bool
return void

MarkAsRead() public method

public MarkAsRead ( int userId, int startMessageId = null ) : System.Threading.Tasks.Task
userId int
startMessageId int
return System.Threading.Tasks.Task

MarkAsReadSync() public method

public MarkAsReadSync ( int userId, int startMessageId = null ) : void
userId int
startMessageId int
return void

RemoveChatUser() public method

public RemoveChatUser ( int userId, int chatId ) : System.Threading.Tasks.Task
userId int
chatId int
return System.Threading.Tasks.Task

RemoveChatUserSync() public method

public RemoveChatUserSync ( int userId, int chatId ) : void
userId int
chatId int
return void

Restore() public method

public Restore ( int messageId ) : System.Threading.Tasks.Task
messageId int
return System.Threading.Tasks.Task

RestoreSync() public method

public RestoreSync ( int messageId ) : void
messageId int
return void

Send() public method

public Send ( int userId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
userId int
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return Task

Send() public method

public Send ( string domain, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
domain string
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return Task

SendChat() public method

public SendChat ( int chatId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
chatId int
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return Task

SendChatSync() public method

public SendChatSync ( int chatId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
chatId int
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return int

SendPeer() public method

public SendPeer ( long peerId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : Task
peerId long
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return Task

SendPeerSync() public method

public SendPeerSync ( long peerId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
peerId long
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return int

SendSync() public method

public SendSync ( int userId, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
userId int
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return int

SendSync() public method

public SendSync ( string domain, string message = null, int guid = null, double lat = null, double @long = null, ContentId attachment = null, long forwardMessages = null, int stickerId = null, long randomId = null ) : int
domain string
message string
guid int
lat double
@long double
attachment ContentId
forwardMessages long
stickerId int
randomId long
return int

SetActivity() public method

public SetActivity ( int userId, ImActivity type = ImActivity.Typing ) : System.Threading.Tasks.Task
userId int
type ImActivity
return System.Threading.Tasks.Task

SetActivitySync() public method

public SetActivitySync ( int userId, ImActivity type = ImActivity.Typing ) : void
userId int
type ImActivity
return void