added own mediatype class
added new MediaType class to all api classes