Exemplo n.º 1
0
        /// <summary>
        /// Returns a bunch of information about the behaviour which can be dumped to
        /// a debug display for debugging at runtime.
        /// </summary>
        /// <returns>A formatted string of debug information.</returns>
        public override String[] GetDebugInfo()
        {
            String [] info = new String[1];

            info[0] = "Follow: " + mCurrentFollowType.ToString();

            return(info);
        }
Exemplo n.º 2
0
 /// <param name="login"></param>
 /// <param name="author"></param>
 /// <param name="what">"blog","posts" or "blog" or "posts" or "" = (unfollow). (posts, comments, votes, ignore *https://github.com/steemit/steem/blob/master/libraries/wallet/include/steemit/wallet/wallet.hpp)</param>
 /// <param name="requiredPostingAuths"></param>
 /// <returns></returns>
 public FollowOperation(string login, string author, FollowType what, params string[] requiredPostingAuths)
     : base("follow", $"[\"follow\", {{\"follower\": \"{login}\", \"following\": \"{author}\", \"what\": [\"{EnumConverter.ToJson(what.ToString())}\"]}}]")
 {
     RequiredPostingAuths = requiredPostingAuths;
 }
Exemplo n.º 3
0
 /// <summary>
 ///
 /// Aналогично GetFollowers только для подписок
 /// </summary>
 /// <param name="follower"></param>
 /// <param name="startFollowing"></param>
 /// <param name="followType"></param>
 /// <param name="limit"></param>
 /// <returns></returns>
 public JsonRpcResponse <FollowApiObj[]> GetFollowing(string follower, string startFollowing, FollowType followType, UInt16 limit = 10)
 {
     return(_webSocketManager.GetRequest <FollowApiObj[]>("call", "follow_api", "get_following", new object[] { follower, startFollowing, followType.ToString().ToLower(), limit }));
 }
 /// <summary>
 ///
 /// Aналогично GetFollowers только для подписок
 /// </summary>
 /// <param name="follower"></param>
 /// <param name="startFollowing"></param>
 /// <param name="followType"></param>
 /// <param name="limit"></param>
 /// <param name="token">Throws a <see cref="T:System.OperationCanceledException" /> if this token has had cancellation requested.</param>
 /// <returns></returns>
 /// <exception cref="T:System.OperationCanceledException">The token has had cancellation requested.</exception>
 public JsonRpcResponse <FollowApiObj[]> GetFollowing(string follower, string startFollowing, FollowType followType, UInt16 limit, CancellationToken token)
 {
     return(CustomGetRequest <FollowApiObj[]>("call", token, "follow_api", "get_following", new object[] { follower, startFollowing, followType.ToString().ToLower(), limit }));
 }