1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.fourthline.cling.controlpoint.event;
17
18 import org.fourthline.cling.model.message.header.MXHeader;
19 import org.fourthline.cling.model.message.header.STAllHeader;
20 import org.fourthline.cling.model.message.header.UpnpHeader;
21
22
23
24
25 public class Search {
26
27 protected UpnpHeader searchType = new STAllHeader();
28 protected int mxSeconds = MXHeader.DEFAULT_VALUE;
29
30 public Search() {
31 }
32
33 public Search(UpnpHeader searchType) {
34 this.searchType = searchType;
35 }
36
37 public Search(UpnpHeader searchType, int mxSeconds) {
38 this.searchType = searchType;
39 this.mxSeconds = mxSeconds;
40 }
41
42 public Search(int mxSeconds) {
43 this.mxSeconds = mxSeconds;
44 }
45
46 public UpnpHeader getSearchType() {
47 return searchType;
48 }
49
50 public int getMxSeconds() {
51 return mxSeconds;
52 }
53 }