Initial commit of RIC Dashboard webapp
[portal/ric-dashboard.git] / webapp-frontend / src / app / services / admin / admin.service.ts
1 /*-
2  * ========================LICENSE_START=================================
3  * ORAN-OSC
4  * %%
5  * Copyright (C) 2019 AT&T Intellectual Property and Nokia
6  * %%
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ========================LICENSE_END===================================
19  */
20 import { Injectable } from '@angular/core';
21
22 @Injectable()
23 export class AdminService {
24
25 data = [{
26     id: 1,
27     firstName: 'John',
28     lastName: 'Doe',
29     status: 'Active',
30   }, {
31     id: 2,
32     firstName: 'Alice',
33     lastName: 'Nolan',
34     status: 'Active',
35   }, {
36     id: 3,
37     firstName: 'Pierce',
38     lastName: 'King',
39     status: 'InActive',
40   }, {
41     id: 4,
42     firstName: 'Paul',
43     lastName: 'Smith',
44     status: 'InActive',
45   }, {
46     id: 5,
47     firstName: 'Jack',
48     lastName: 'Reacher',
49     status: 'Active',
50   }];
51
52   getData() {
53     return this.data; // @TODO implement the service to fetch the backend data
54   }
55 }