From: APTX Date: Sat, 7 Feb 2026 08:00:29 +0000 (+0900) Subject: Add support for voting by EID X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=adf2313d09e4fc2540ff97b62a0049702f49c99b;p=anidbudpclient.git Add support for voting by EID EpNo as string is not yet supported. --- diff --git a/votecommand.cpp b/votecommand.cpp index 3b55c32..51f7cb9 100644 --- a/votecommand.cpp +++ b/votecommand.cpp @@ -125,8 +125,9 @@ bool VoteCommand::waitForResult() const bool VoteCommand::isValid() const { - return (m_id || !m_name.isEmpty()) - && ((m_epno && m_voteType == AnimeVote) || !m_epno); + return ((m_id || !m_name.isEmpty()) && + ((m_epno && m_voteType == AnimeVote) || !m_epno) || + (m_voteType == EpisodeIdVote && m_id)); // Value is set to 0 if not in valid range } diff --git a/votecommand.h b/votecommand.h index 1ee1616..5aaeef3 100644 --- a/votecommand.h +++ b/votecommand.h @@ -11,12 +11,12 @@ class ANIDBUDPCLIENTSHARED_EXPORT VoteCommand : public AbstractCommand { public: - enum VoteType { AnimeVote = 1, AnimeTempVote = 2, GroupVote = 3, + EpisodeIdVote = 6, }; enum VoteAction {