Project

General

Profile

1
import {Injectable} from '@angular/core';
2
import {Http, Response, Headers, RequestOptions} from '@angular/http';
3

    
4
import {EnvProperties} from '../../openaireLibrary/utils/properties/env-properties';
5

    
6
@Injectable()
7
export class ManageUserNotificationService {
8

    
9
    constructor(private http: Http) {
10

    
11
    }
12

    
13

    
14
    getUserNotification(properties: EnvProperties, url: string) {
15
        return this.http.get((properties.useCache) ? (properties.cacheUrl + encodeURIComponent(url)) : url)
16
                        .map(res => <any> res.json()).map(res => this.parseUserNotification(res));
17
    }
18

    
19
    parseUserNotification(data: any) {
20
      }
21
  }
(4-4/4)