19 package org.sleuthkit.autopsy.communications;
21 import java.time.ZoneId;
22 import java.time.ZoneOffset;
34 static ZoneId getUserPreferredZoneId() {
35 ZoneId zone = UserPreferences.displayTimesInLocalTime() ? ZoneOffset.systemDefault() : ZoneOffset.UTC;
45 static final String getIconFileName(Account.Type type) {
46 if (type.equals(Account.Type.CREDIT_CARD)) {
47 return "credit-card.png";
48 }
else if (type.equals(Account.Type.DEVICE)) {
50 }
else if (type.equals(Account.Type.EMAIL)) {
52 }
else if (type.equals(Account.Type.FACEBOOK)) {
53 return "facebook.png";
54 }
else if (type.equals(Account.Type.INSTAGRAM)) {
55 return "instagram.png";
56 }
else if (type.equals(Account.Type.MESSAGING_APP)) {
57 return "messaging.png";
58 }
else if (type.equals(Account.Type.PHONE)) {
60 }
else if (type.equals(Account.Type.TWITTER)) {
62 }
else if (type.equals(Account.Type.WEBSITE)) {
63 return "web-file.png";
64 }
else if (type.equals(Account.Type.WHATSAPP)) {
65 return "WhatsApp.png";
68 throw new IllegalArgumentException(
"Unknown Account.Type: " + type.getTypeName());