Dear Fadi,
Thank you for your question. AdoScript has more than 400 methods distributed in 16 different messageports. You can find an AdoScript online documentation at the following link:
http://www.adoxx.org/live/adoscript-documentation
The search functionality of this documentation can be usefull by working with AdoScript commands. E.g., if you would need a GET method, you can write into the search field: GET and you will receive all the GET methods of AdoSript (See ScreenShot).
For getting object type or relation type you would need in both cases the command GET_CLASS_NAME in the messageport Core. The syntax of this command is as follows:
1CC "Core" GET_CLASS_NAME classid:intValue
2#--> RESULT ecode:intValue classname:strValue isrel:intValue
Parameters: classid intValue, the ID of the class
Returns:ecode intValue, Contains the error code or is 0 in case of success.
classname strValue, the name of the given class
isrel intValue, is set to 1 it the class is a relationclass, to 0 if it is not.