Alexandre Lision | 6711ab2 | 2013-09-16 15:15:38 -0400 | [diff] [blame^] | 1 | package com.savoirfairelinux.sflphone.account; |
| 2 | |
| 3 | import java.util.HashMap; |
| 4 | |
| 5 | import com.savoirfairelinux.sflphone.service.ServiceConstants; |
| 6 | import com.savoirfairelinux.sflphone.service.StringMap; |
| 7 | |
| 8 | public 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 | } |