blob: 173111399f7c4c2c46fac261a5d045c4ad839916 [file] [log] [blame]
Alexandre Lision6711ab22013-09-16 15:15:38 -04001package com.savoirfairelinux.sflphone.account;
2
3import java.util.HashMap;
4
5import com.savoirfairelinux.sflphone.service.ServiceConstants;
6import com.savoirfairelinux.sflphone.service.StringMap;
7
8public class CallDetailsHandler {
9
10 public static HashMap<String, String> convertSwigToNative(StringMap swigmap) {
11
12 HashMap<String, String> entry = new HashMap<String, String>();
13
14 entry.put(ServiceConstants.call.CALL_TYPE, swigmap.get(ServiceConstants.call.CALL_TYPE));
15 entry.put(ServiceConstants.call.PEER_NUMBER, swigmap.get(ServiceConstants.call.PEER_NUMBER));
16 entry.put(ServiceConstants.call.DISPLAY_NAME, swigmap.get(ServiceConstants.call.DISPLAY_NAME));
17 entry.put(ServiceConstants.call.CALL_STATE, swigmap.get(ServiceConstants.call.CALL_STATE));
18 entry.put(ServiceConstants.call.CONF_ID, swigmap.get(ServiceConstants.call.CONF_ID));
19 entry.put(ServiceConstants.call.TIMESTAMP_START, swigmap.get(ServiceConstants.call.TIMESTAMP_START));
20 entry.put(ServiceConstants.call.ACCOUNTID, swigmap.get(ServiceConstants.call.ACCOUNTID));
21
22 return entry;
23 }
24
25}