Beispiel #1
0
        public async Task get_feed_entries()
        {
            var args = new GetFeedEntriesArgs
            {
                Account      = User.Login,
                StartEntryId = 0,
                Limit        = 10
            };
            var resp = await Api.GetFeedEntriesAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
Beispiel #2
0
        public void get_feed_entries()
        {
            var args = new GetFeedEntriesArgs()
            {
                Account      = User.Login,
                StartEntryId = 0,
                Limit        = 10,
            };
            var resp = Api.GetFeedEntries(args, CancellationToken.None);

            WriteLine(resp);
            Assert.IsFalse(resp.IsError);

            var obj = Api.CustomGetRequest <JObject>(KnownApiNames.FollowApi, "get_feed_entries", args, CancellationToken.None);

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
 /// <summary>
 /// API name: get_feed_entries
 ///
 /// </summary>
 /// <param name="args">API type: get_feed_entries_args</param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns>API type: get_feed_entries_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public JsonRpcResponse <GetFeedEntriesReturn> GetFeedEntries(GetFeedEntriesArgs args, CancellationToken token)
 {
     return(CustomGetRequest <GetFeedEntriesReturn>(KnownApiNames.FollowApi, "get_feed_entries", args, token));
 }