fa65a053e21de39cb9d47f207448399655755022
[public/netxms.git] / src / java / netxms-client / src / main / java / org / netxms / client / objects / AccessPoint.java
1 /**
2 *
3 */
4 package org.netxms.client.objects;
5
6 import org.netxms.base.NXCPCodes;
7 import org.netxms.base.NXCPMessage;
8 import org.netxms.client.MacAddress;
9 import org.netxms.client.NXCSession;
10
11 /**
12 * Access point class
13 */
14 public class AccessPoint extends GenericObject
15 {
16 private long nodeId;
17 private MacAddress macAddress;
18 private String vendor;
19 private String model;
20 private String serialNumber;
21
22 /**
23 * @param msg
24 * @param session
25 */
26 public AccessPoint(NXCPMessage msg, NXCSession session)
27 {
28 super(msg, session);
29 nodeId = msg.getVariableAsInt64(NXCPCodes.VID_NODE_ID);
30 macAddress = new MacAddress(msg.getVariableAsBinary(NXCPCodes.VID_MAC_ADDR));
31 vendor = msg.getVariableAsString(NXCPCodes.VID_VENDOR);
32 model = msg.getVariableAsString(NXCPCodes.VID_MODEL);
33 serialNumber = msg.getVariableAsString(NXCPCodes.VID_SERIAL_NUMBER);
34 }
35
36 /* (non-Javadoc)
37 * @see org.netxms.client.objects.AbstractObject#getObjectClassName()
38 */
39 @Override
40 public String getObjectClassName()
41 {
42 return "AccessPoint";
43 }
44
45 /**
46 * @return the nodeId
47 */
48 public long getNodeId()
49 {
50 return nodeId;
51 }
52
53 /**
54 * @return the macAddress
55 */
56 public MacAddress getMacAddress()
57 {
58 return macAddress;
59 }
60
61 /**
62 * @return the vendor
63 */
64 public String getVendor()
65 {
66 return vendor;
67 }
68
69 /**
70 * @return the serialNumber
71 */
72 public String getSerialNumber()
73 {
74 return serialNumber;
75 }
76
77 /**
78 * @return the model
79 */
80 public String getModel()
81 {
82 return model;
83 }
84 }