Exemple #1
0
        public ReadOnlyCollection <Attachment> GetHistoryAttachments(MessagesGetHistoryAttachmentsParams @params, out string nextFrom)
        {
            var result = _vk.Call("messages.getHistoryAttachments", @params);

            nextFrom = result["next_from"];

            return(result.ToReadOnlyCollectionOf <Attachment>(o => o));
        }
Exemple #2
0
        /// <inheritdoc />
        public ReadOnlyCollection <HistoryAttachment> GetHistoryAttachments(MessagesGetHistoryAttachmentsParams @params, out string nextFrom)
        {
            var result = _vk.Call(methodName: "messages.getHistoryAttachments", parameters: @params);

            nextFrom = result[key : "next_from"];

            return(result.ToReadOnlyCollectionOf <HistoryAttachment>(selector: o => o));
        }
Exemple #3
0
		public ReadOnlyCollection<Attachment> GetHistoryAttachments(MessagesGetHistoryAttachmentsParams @params, out string nextFrom)
		{
			var result = _vk.Call("messages.getHistoryAttachments", @params);

			nextFrom = result["next_from"];

			return result.ToReadOnlyCollectionOf<Attachment>(o => o);
		}
Exemple #4
0
 /// <inheritdoc />
 public Task <ReadOnlyCollection <HistoryAttachment> > GetHistoryAttachmentsAsync(MessagesGetHistoryAttachmentsParams @params)
 {
     return(TypeHelper.TryInvokeMethodAsync(func: () =>
                                            GetHistoryAttachments(@params: @params, nextFrom: out var _)));
 }
Exemple #5
0
        public ReadOnlyCollection <Attachment> GetHistoryAttachments(MessagesGetHistoryAttachmentsParams @params)
        {
            var parameters = @params;

            return(_vk.Call("messages.getHistoryAttachments", parameters).ToReadOnlyCollectionOf <Attachment>(o => o));
        }
Exemple #6
0
 public ReadOnlyCollection <HistoryAttachment> GetHistoryAttachments(MessagesGetHistoryAttachmentsParams @params,
                                                                     out string nextFrom)
 {
     throw new NotImplementedException();
 }
Exemple #7
0
 public Task <ReadOnlyCollection <HistoryAttachment> > GetHistoryAttachmentsAsync(
     MessagesGetHistoryAttachmentsParams @params)
 {
     throw new NotImplementedException();
 }
Exemple #8
0
 /// <inheritdoc />
 public async Task <ReadOnlyCollection <HistoryAttachment> > GetHistoryAttachmentsAsync(MessagesGetHistoryAttachmentsParams @params)
 {
     return(await TypeHelper.TryInvokeMethodAsync(() => _vk.Messages.GetHistoryAttachments(@params, out var _)));
 }
Exemple #9
0
        public ReadOnlyCollection<Attachment> GetHistoryAttachments(MessagesGetHistoryAttachmentsParams @params)
        {
            var parameters = @params;

            return _vk.Call("messages.getHistoryAttachments", parameters).ToReadOnlyCollectionOf<Attachment>(o => o);
        }