class MainActivity : AppCompatActivity() {
private fun getSections() {
STSections.getInstance()?.getSections(object: STHttpCallback<List<STSections>> {
override fun onSuccess(sections: List<STSections>) {
override fun onError(t: Throwable) {
Log.e(LOG_TAG, "Error getting sections", t)
private fun getContent() {
val contentKey: String = "azeaze-311qsd-qsdaze"
STContents.getInstance()?.getContent(contentKey, object: STHttpCallback<STContent> {
override fun onSuccess(content: STContent) {
override fun onError(t: Throwable) {
Log.e(LOG_TAG, "Error getting content with contentKey : $contentKey", t)
private const val LOG_TAG = "MainActivity"