示例#1
0
        public async Task get_feed()
        {
            var args = new GetFeedArgs
            {
                Account      = User.Login,
                StartEntryId = 0,
                Limit        = 10
            };
            var resp = await Api.GetFeedAsync(args, CancellationToken.None).ConfigureAwait(false);

            TestPropetries(resp);
        }
示例#2
0
        public void get_feed()
        {
            var args = new GetFeedArgs()
            {
                Account      = User.Login,
                StartEntryId = 0,
                Limit        = 10,
            };
            var resp = Api.GetFeed(args, CancellationToken.None);

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

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

            TestPropetries(resp.Result.GetType(), obj.Result);
            WriteLine("----------------------------------------------------------------------------");
            WriteLine(obj);
        }
 /// <summary>
 /// API name: get_feed
 ///
 /// </summary>
 /// <param name="args">API type: get_feed_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_return</returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public JsonRpcResponse <GetFeedReturn> GetFeed(GetFeedArgs args, CancellationToken token)
 {
     return(CustomGetRequest <GetFeedReturn>(KnownApiNames.FollowApi, "get_feed", args, token));
 }