# Path: xmpp_backends/constants.py
# CONNECTION_HTTP_BINDING = 2
# 
# Path: xmpp_backends/constants.py
# CONNECTION_HTTP_POLLING = 1
# 
# Path: xmpp_backends/constants.py
# CONNECTION_UNKNOWN = 4
# 
# Path: xmpp_backends/constants.py
# CONNECTION_WEBSOCKETS = 3
# 
# Path: xmpp_backends/constants.py
# CONNECTION_XMPP = 0


from django.contrib.auth.models import AbstractBaseUser
from django.db import models
from django.utils import timezone
from django.utils.crypto import get_random_string
from django.utils.translation import gettext as _
from ...constants import CONNECTION_HTTP_BINDING
from ...constants import CONNECTION_HTTP_POLLING
from ...constants import CONNECTION_UNKNOWN
from ...constants import CONNECTION_WEBSOCKETS
from ...constants import CONNECTION_XMPP
# This file is part of xmpp-backends (https://github.com/mathiasertl/xmpp-backends).
#
# xmpp-backends is free software: you can redistribute it and/or modify it under the terms of the GNU General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# xmpp-backends is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along with xmpp-backends. If not, see
# <http://www.gnu.org/licenses/>.




class FakeUser(AbstractBaseUser):
    username = models.CharField(max_length=64, unique=True)
    email = models.EmailField(blank=True, null=True)
    last_activity = models.DateTimeField(default=timezone.now)
    last_status = models.CharField(max_length=255, blank=True, null=True)
    is_blocked = models.BooleanField(default=True)


# Path: xmpp_backends/constants.py
# CONNECTION_HTTP_BINDING = 2
# 
# Path: xmpp_backends/constants.py
# CONNECTION_HTTP_POLLING = 1
# 
# Path: xmpp_backends/constants.py
# CONNECTION_UNKNOWN = 4
# 
# Path: xmpp_backends/constants.py
# CONNECTION_WEBSOCKETS = 3
# 
# Path: xmpp_backends/constants.py
# CONNECTION_XMPP = 0


# Path: xmpp_backends/django/fake_xmpp/models.py
from django.contrib.auth.models import AbstractBaseUser
from django.db import models
from django.utils import timezone
from django.utils.crypto import get_random_string
from django.utils.translation import gettext as _
from ...constants import CONNECTION_HTTP_BINDING
from ...constants import CONNECTION_HTTP_POLLING
from ...constants import CONNECTION_UNKNOWN
from ...constants import CONNECTION_WEBSOCKETS
from ...constants import CONNECTION_XMPP

# This file is part of xmpp-backends (https://github.com/mathiasertl/xmpp-backends).
#
# xmpp-backends is free software: you can redistribute it and/or modify it under the terms of the GNU General
# Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
# option) any later version.
#
# xmpp-backends is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
# for more details.
#
# You should have received a copy of the GNU General Public License along with xmpp-backends. If not, see
# <http://www.gnu.org/licenses/>.




class FakeUser(AbstractBaseUser):
    username = models.CharField(max_length=64, unique=True)
    email = models.EmailField(blank=True, null=True)
    last_activity = models.DateTimeField(default=timezone.now)
    last_status = models.CharField(max_length=255, blank=True, null=True)
    is_blocked = models.BooleanField(default=True)


    USERNAME_FIELD = 'username'