Add NetworkActivity interface and RestApi class