(1) Receive, agree to receive, or contract for, before or during any primary or final election or convention provided by law, any money, gift, loan, or other valuable consideration, or any office, place or employment for such person or for any other person, for voting or agreeing to vote, or for going to or remaining or agreeing to remain away from the polls, or refraining or agreeing to refrain from voting for any particular person or measure, at or in connection with any such convention, primary or election; or
(2) Receive any money or other valuable thing during or after any convention, primary or final election provided by law, on account of such person or any other person, for voting or refraining from voting for any person or measure, or for going to the polls or remaining away from the polls at any such convention, primary or final election, or on account of having induced any person to vote or refrain from voting for any particular person or measure at any such convention, primary or final election.