summaryrefslogtreecommitdiffstats
path: root/coffee/services/activefeed.coffee
blob: 8ba160e4fb716712c0412d5a543257db69d1ddb9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
###
# ownCloud news app
#
# @author Alessandro Cosentino
# @author Bernhard Posselt
# Copyright (c) 2012 - Alessandro Cosentino <cosenal@gmail.com>
# Copyright (c) 2012 - Bernhard Posselt <nukeawhale@gmail.com>
#
# This file is licensed under the Affero General Public License version 3 or
# later.
#
# See the COPYING-README file
#
###

angular.module('News').factory '_ActiveFeed', ->

	class ActiveFeed

		constructor: ->
			@id = 0
			@type = 3

		handle: (data) ->
			@id = data.id
			@type = data.type

	return ActiveFeed