Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi all,
 
The method getExtMapStatus() in the class ISPhoneLineList returns one instance of ExtMapStatus. Shouldn't it return an array of ExtMapStatus instances for devices with multiple lines?
 
 

RE: ISPhoneLineList
Answer
12/12/11 9:47 PM as a reply to Konstantin Chrispens.
Hope the following sample helps

for (ExtMapStatus b: a.getISPhoneLineList().getExtMapStatus() ){
System.out.println(
"Ext ID: "+b.getExtId()+" "+
"Ext Number: "+b.getExtNumber()+" "+
"Ext Status: "+b.getExtStatus()+" "+
"Ext ID: "+b.getLineId()+" "+
"Line State : "+b.getLineState());
}

RE: ISPhoneLineList
Answer
12/14/11 10:10 AM as a reply to Yaw-Ming Chen.
This doesn't work with version 1.0.2 because here getExtMapStatus() does not return a list but one single ExtMapStatus object. But it works in version 1.0.1

RE: ISPhoneLineList
Answer
12/14/11 11:48 AM as a reply to Konstantin Chrispens.
Hi Konstantin,

it is changed In 1.0.2 , please use below code to get the same result.

for (ISDevice a : response.getISDevices().getISDevice()){
ExtMapStatus b = a.getISPhoneLineList().getExtMapStatus();
System.out.println(
"Ext ID: "+b.getExtId()+" "+
"Ext Number: "+b.getExtNumber()+" "+
"Ext Status: "+b.getExtStatus()+" "+
"Line ID: "+b.getLineId()+" "+
"Line State : "+b.getLineState());
}

Thanks,
Raghavendra

RE: ISPhoneLineList
Answer
12/11/12 10:56 PM as a reply to Raghavendra Gutty Veeranagappa.
Raghavendra,
Konstantin is correct. the definition is broken in 1.0.2
your codc example above is wrong, because only returns the first element, not all ExtMapStatus elements, as needed for all purposes.
However, including both 1.0,1 and 1.0.2 jarfiles, one can have it working.
 
 
 

RE: ISPhoneLineList
Answer
12/12/12 10:59 AM as a reply to Frank Bodiker Jr.
Hi Frank,
your correct above sample code return one element, i will check and let you know.
Thanks,
Raghavendra