The mayor and city council members and all other officers, agents, and employees of a city of the metropolitan class are prohibited from soliciting or receiving, directly or indirectly, for any purpose whatsoever, any contribution of money or supplies of whatsoever kind, or any valuable or special privilege at the hands of any city contractor, or his or her agents, or from any franchised municipal corporation. Such conduct shall constitute malfeasance in office. No officer, appointee, agent, or employee shall directly or indirectly solicit or receive any gift or contribution of money or supplies, or any valuable service, from any appointee, agent, or employee of such city, for the benefit of the person asking for such gift or contribution or for the benefit of another. A violation of this section is a Class III misdemeanor.