From Bright Pattern Documentation
Jump to: navigation, search
 
 
Line 3: Line 3:
 
The following code snippet shows how to obtain a list of dispositions for an interaction filtered according to the disposition type:  
 
The following code snippet shows how to obtain a list of dispositions for an interaction filtered according to the disposition type:  
  
 
+
List<Disposition> dispositions = new List<Disposition>();
{|border="1" style="border-collapse:collapse" cellpadding="5"
+
|''List<Disposition> dispositions = new List<Disposition>();''
+
List<Disposition> allDispositions = item.service.dispositions.Values.ToList();
 
+
''List<Disposition> allDispositions = item.service.dispositions.Values.ToList();''
+
switch (item.mediaType)
 
+
''switch (item.mediaType)''
+
{
 
+
case ADAPI.MediaType.Preview:
::''{''
+
:::''case ADAPI.MediaType.Preview:''
+
dispositions.AddRange(allDispositions.Where(x => x.preview && x.showToAgent));
 
+
break;
::::''dispositions.AddRange(allDispositions.Where(x => x.preview && x.showToAgent));''
+
::::''break;''
+
case ADAPI.MediaType.Voice:
 
+
:::''case ADAPI.MediaType.Voice:''
+
if (String.IsNullOrEmpty(item.workitemId))
 
+
{
::::''if (String.IsNullOrEmpty(item.workitemId))''
+
dispositions.AddRange(allDispositions.Where(x => x.inbound && x.showToAgent));
:::::''{''
+
}
::::::''dispositions.AddRange(allDispositions.Where(x => x.inbound && x.showToAgent));''
+
else
:::::''}''
+
{
::::''else''
+
dispositions.AddRange(allDispositions.Where(x => x.outbound && x.showToAgent));
:::::''{''
+
}
::::::''dispositions.AddRange(allDispositions.Where(x => x.outbound && x.showToAgent));''
+
break;
:::::''}''
+
::::''break;''
+
default:
 
+
:::''default:''
+
dispositions.AddRange(allDispositions.Where(x => x.showToAgent));
 
+
break;
::::''dispositions.AddRange(allDispositions.Where(x => x.showToAgent));''
+
}  
::::''break;''
+
}
::''}''
 
|}
 
  
  
Line 42: Line 40:
 
* indicating whether the voice recording of this call contains [[agent-guide/HowtoCollectaVoiceSignature|a voice signature]]
 
* indicating whether the voice recording of this call contains [[agent-guide/HowtoCollectaVoiceSignature|a voice signature]]
  
 +
public ResultCode disposition((string dispositionId, string notes, DateTime reschFrom, DateTime reschTo, string reschPhone, string reschTZ, bool bVoiceSignature);
  
::''public ResultCode disposition((string dispositionId, string notes, DateTime reschFrom, DateTime reschTo, string reschPhone, string reschTZ, bool bVoiceSignature);''
+
This method can be used both while the call is in progress and after it is disconnected while the user is in the After-call Work state.
  
 
This method can be used both while the call is in progress and after it is disconnected while the user is in the After-call Work state.
 
  
  
  
<center>[[desktop-integration-api-net-version-tutorial/WrappingUpAfter-callWork|< Previous]]  |  [[desktop-integration-api-net-version-tutorial/Directory|Next >]]</center>
 
 
</translate>
 
</translate>

Latest revision as of 20:17, 13 May 2019

• 5.19 • 5.2 • 5.3 • 5.8

Entering Dispositions and Notes

The following code snippet shows how to obtain a list of dispositions for an interaction filtered according to the disposition type:

List<Disposition> dispositions = new List<Disposition>();

List<Disposition> allDispositions = item.service.dispositions.Values.ToList();

switch (item.mediaType)

{
case ADAPI.MediaType.Preview:

dispositions.AddRange(allDispositions.Where(x => x.preview && x.showToAgent));
break;

case ADAPI.MediaType.Voice:

if (String.IsNullOrEmpty(item.workitemId))
{
dispositions.AddRange(allDispositions.Where(x => x.inbound && x.showToAgent));
}
else
{
dispositions.AddRange(allDispositions.Where(x => x.outbound && x.showToAgent));
}
break;

default:

dispositions.AddRange(allDispositions.Where(x => x.showToAgent));
break;
} 
}


The method below is used for:

public ResultCode disposition((string dispositionId, string notes, DateTime reschFrom, DateTime reschTo, string reschPhone, string reschTZ, bool bVoiceSignature);

This method can be used both while the call is in progress and after it is disconnected while the user is in the After-call Work state.


< Previous | Next >