sdk2 converts each api method call to a class