def METHOD_NAME(self, result, error=False, server=None, context={}, **kwargs):
    if error:
        if result:
            log.error(result["message"])
        return
    for snapshot in result:
        item = QtWidgets.QListWidgetItem(self.uiSnapshotsList)
        item.setText("{} on {}".format(snapshot["name"], datetime.fromtimestamp(snapshot["created_at"]).strftime("%d/%m/%y at %H:%M:%S")))
        item.setData(QtCore.Qt.UserRole, snapshot["snapshot_id"])
    if self.uiSnapshotsList.count():
        self.uiSnapshotsList.setCurrentRow(0)
        self.uiDeletePushButton.setEnabled(True)
        self.uiRestorePushButton.setEnabled(True)
    else:
        self.uiDeletePushButton.setEnabled(False)
        self.uiRestorePushButton.setEnabled(False)