Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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);
		}
Exemplo n.º 4
0
 /// <inheritdoc />
 public Task <ReadOnlyCollection <HistoryAttachment> > GetHistoryAttachmentsAsync(MessagesGetHistoryAttachmentsParams @params)
 {
     return(TypeHelper.TryInvokeMethodAsync(func: () =>
                                            GetHistoryAttachments(@params: @params, nextFrom: out var _)));
 }
Exemplo n.º 5
0
        public ReadOnlyCollection <Attachment> GetHistoryAttachments(MessagesGetHistoryAttachmentsParams @params)
        {
            var parameters = @params;

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

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