# Path: dwitter/feed/views.py
# class NewUserFeed(UserFeed):
#     sort = SortMethod.NEW
#     feed_name = "new"
# 
#     def get_title(self):
#         return "Dweets by u/" + self.kwargs['url_username'] + " | Dwitter"
# 
# class HotUserFeed(UserFeed):
#     sort = SortMethod.HOT
#     feed_name = "hot"
# 
#     def get_title(self):
#         return "Hot dweets by u/" + self.kwargs['url_username'] + " | Dwitter"
# 
# class TopUserFeed(UserFeed):
#     sort = SortMethod.TOP
#     feed_name = "top"
# 
#     def get_title(self):
#         return "Top dweets by u/" + self.kwargs['url_username'] + " | Dwitter"
# 
# class NewLikedFeed(LikedFeed):
#     sort = SortMethod.NEW
#     feed_name = "awesome"
# 
#     def get_title(self):
#         return "Dweets awesomed by u/" + self.kwargs['url_username'] + " | Dwitter"


from django.conf.urls import url
from . import views
from ..feed.views import NewUserFeed, HotUserFeed, TopUserFeed, NewLikedFeed

urlpatterns = [
    url(r'^(?P<url_username>[\w.@+-]+)$', NewUserFeed.as_view(), name='user_feed'),
    url(r'^(?P<url_username>[\w.@+-]+)/hot$', HotUserFeed.as_view(), name='hot_user_feed'),
    url(r'^(?P<url_username>[\w.@+-]+)/top$', TopUserFeed.as_view(), name='top_user_feed'),


# Path: dwitter/feed/views.py
# class NewUserFeed(UserFeed):
#     sort = SortMethod.NEW
#     feed_name = "new"
# 
#     def get_title(self):
#         return "Dweets by u/" + self.kwargs['url_username'] + " | Dwitter"
# 
# class HotUserFeed(UserFeed):
#     sort = SortMethod.HOT
#     feed_name = "hot"
# 
#     def get_title(self):
#         return "Hot dweets by u/" + self.kwargs['url_username'] + " | Dwitter"
# 
# class TopUserFeed(UserFeed):
#     sort = SortMethod.TOP
#     feed_name = "top"
# 
#     def get_title(self):
#         return "Top dweets by u/" + self.kwargs['url_username'] + " | Dwitter"
# 
# class NewLikedFeed(LikedFeed):
#     sort = SortMethod.NEW
#     feed_name = "awesome"
# 
#     def get_title(self):
#         return "Dweets awesomed by u/" + self.kwargs['url_username'] + " | Dwitter"


# Path: dwitter/user/urls.py
from django.conf.urls import url
from . import views
from ..feed.views import NewUserFeed, HotUserFeed, TopUserFeed, NewLikedFeed


urlpatterns = [
    url(r'^(?P<url_username>[\w.@+-]+)$', NewUserFeed.as_view(), name='user_feed'),
    url(r'^(?P<url_username>[\w.@+-]+)/hot$', HotUserFeed.as_view(), name='hot_user_feed'),
    url(r'^(?P<url_username>[\w.@+-]+)/top$', TopUserFeed.as_view(), name='top_user_feed'),


    url(r'^(?P<url_username>[\w.@+-]+)/awesome$', NewLikedFeed.as_view(), name='user_liked'),