@@ -0,0 +1,1537 @@
+# Copyright (C) 2014 cybojenix %3Canthonydking@slimroms.net%3E%0A#%0A# This file is part of XdaPy.%0A#%0A# XdaPy is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU General Public License as published by%0A# the Free Software Foundation, either version 3 of the License, or%0A# (at your option) any later version.%0A%0A# XdaPy is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU General Public License for more details.%0A#%0A# You should have received a copy of the GNU General Public License%0A# along with XdaPy.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%0A%0Aclass Mention(object):%0A    def __init__(self, data):%0A        if data is None:%0A            data = %7B%7D%0A        assert hasattr(data, %22get%22)%0A        self.page_text = data.get(%22pagetext%22, %22%22)%0A        self.date_line = data.get(%22dateline%22, %22%22)%0A        self.post_id = data.get(%22postid%22, %22%22)%0A        self.type = data.get(%22type%22, %22%22)%0A        self.user_id = data.get(%22userid%22, %22%22)%0A        self.username = data.get(%22username%22, %22%22)%0A        self.quoted_user_id = data.get(%22quoteduserid%22, %22%22)%0A        self.quoted_username = data.get(%22quotedusername%22, %22%22)%0A        self.quoted_user_group_id = data.get(%22quotedusergroupid%22, %22%22)%0A        self.quoted_infraction_group_id = data.get(%22quotedinfractiongroupid%22, %22%22)%0A        self.avatar_url = data.get(%22avatar_url%22, %22%22)%0A        self.thread = data.get(%22thread%22, %7B%7D)  # this will link back to a thread object

add quote model