blob: 151df570661cbdf44288bbc997c55cd51564584d [file] [log] [blame]
Simon Hunt41b943e2015-05-21 13:52:01 -07001/*
2 * Copyright 2015 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 */
17
18package org.onosproject.cord.gui.model;
19
20/**
21 * Designates a user of a subscriber's account.
22 */
23public class SubscriberUser {
24 private final int id;
25 private final String name;
26 private final String mac;
27
28 /**
29 * Constructs a subscriber user from the given parameters.
30 *
31 * @param id internal identifier
32 * @param name display name
33 * @param mac MAC address of the associated device
34 */
35 public SubscriberUser(int id, String name, String mac) {
36 this.id = id;
37 this.name = name;
38 this.mac = mac;
39 }
40
41 /**
42 * Returns the internal identifier.
43 *
44 * @return the identifier
45 */
46 public int id() {
47 return id;
48 }
49
50 /**
51 * Returns the display name.
52 *
53 * @return display name
54 */
55 public String name() {
56 return name;
57 }
58
59 /**
60 * Returns the MAC address of the associated device.
61 *
62 * @return MAC address
63 */
64 public String mac() {
65 return mac;
66 }
67}