Whoever, having been a candidate for election in the last preceding election and claiming a right to such office, intends to contest the election of a Member of the House of Representatives, shall, within thirty days after the result of such election shall have been declared by the officer or Board of Canvassers authorized by law to declare such result, file with the Clerk and serve upon the contestee written notice of his intention to contest such election.