Francesco Furfari | d8bdb64 | 2006-04-04 23:33:40 +0000 | [diff] [blame^] | 1 | /*
|
| 2 | * Copyright 2006 The Apache Software Foundation
|
| 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 |
|
| 18 | package org.apache.felix.upnp.basedriver.importer.core.event.message;
|
| 19 |
|
| 20 | import java.util.Dictionary;
|
| 21 |
|
| 22 | import org.cybergarage.upnp.Device;
|
| 23 | import org.cybergarage.upnp.Service;
|
| 24 |
|
| 25 | /**
|
| 26 | * @author Matteo "matted" Demuru
|
| 27 | *
|
| 28 | */
|
| 29 | public class StateChanged {
|
| 30 | private String sid;
|
| 31 | private Dictionary dic;
|
| 32 | private long seq;
|
| 33 | private Service service;
|
| 34 | private Device device;
|
| 35 | /**
|
| 36 | * @param sid
|
| 37 | * @param dic
|
| 38 | * @param varName
|
| 39 | * @param varValue
|
| 40 | */
|
| 41 | public StateChanged(String sid, long seq, Dictionary dic, Device device,
|
| 42 | Service service) {
|
| 43 | super();
|
| 44 | this.sid = sid;
|
| 45 | /*
|
| 46 | * this.varName = varName; this.varValue = varValue;
|
| 47 | */
|
| 48 | this.dic = dic;
|
| 49 | /* dic.put(this.varName, this.varValue); */
|
| 50 | //this.service=service;
|
| 51 | this.seq = seq;
|
| 52 | this.device = device;
|
| 53 | this.service = service;
|
| 54 | }
|
| 55 |
|
| 56 | public Dictionary getDictionary() {
|
| 57 | return dic;
|
| 58 | }
|
| 59 | public String getSid() {
|
| 60 | return sid;
|
| 61 | }
|
| 62 | /*
|
| 63 | * public String getVarName() { return varName; } public String
|
| 64 | * getVarValue() { return varValue; }
|
| 65 | */
|
| 66 | public long getSeq() {
|
| 67 | return seq;
|
| 68 | }
|
| 69 | /*
|
| 70 | * public Service getService(){ return service; }
|
| 71 | *
|
| 72 | */
|
| 73 | public String getDeviceID() {
|
| 74 | return device.getUDN();
|
| 75 | }
|
| 76 | public String getServiceID() {
|
| 77 | return service.getServiceID();
|
| 78 | }
|
| 79 | } |