TraktPlugin.GUI.GUICommon.LikeComment C# (CSharp) Méthode

LikeComment() public static méthode

public static LikeComment ( TraktComment comment ) : void
comment TraktPlugin.TraktAPI.DataStructures.TraktComment
Résultat void
        public static void LikeComment(TraktComment comment)
        {
            var likeThread = new Thread((obj) =>
            {
                // add like to cache
                TraktCache.AddCommentToLikes((TraktComment)comment);

                TraktAPI.TraktAPI.LikeComment(((TraktComment)comment).Id);
            })
            {
                Name = "LikeComment",
                IsBackground = true
            };

            likeThread.Start(comment);
        }