2021-01-10 23:37:09 +01:00
|
|
|
/* Copyright (C) 2017-2021 Andreas Shimokawa, Daniele Gobbetti, Lukas
|
|
|
|
Veneziano, Maxim Baz
|
2017-09-14 10:15:14 +02:00
|
|
|
|
|
|
|
This file is part of Gadgetbridge.
|
|
|
|
|
|
|
|
Gadgetbridge is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU Affero General Public License as published
|
|
|
|
by the Free Software Foundation, either version 3 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
Gadgetbridge is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU Affero General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
|
|
along with this program. If not, see <http://www.gnu.org/licenses/>. */
|
|
|
|
|
2017-10-21 22:50:28 +02:00
|
|
|
package nodomain.freeyourgadget.gadgetbridge.service.devices.huami;
|
2017-09-14 10:15:14 +02:00
|
|
|
|
|
|
|
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.NotificationType;
|
|
|
|
|
2017-10-21 22:50:28 +02:00
|
|
|
public class HuamiIcon {
|
2017-09-14 10:15:14 +02:00
|
|
|
// icons which are unsure which app they are for are suffixed with _NN
|
|
|
|
public static final byte WECHAT = 0;
|
|
|
|
public static final byte PENGUIN_1 = 1;
|
|
|
|
public static final byte MI_CHAT_2 = 2;
|
|
|
|
public static final byte FACEBOOK = 3;
|
|
|
|
public static final byte TWITTER = 4;
|
|
|
|
public static final byte MI_APP_5 = 5;
|
|
|
|
public static final byte SNAPCHAT = 6;
|
|
|
|
public static final byte WHATSAPP = 7;
|
|
|
|
public static final byte RED_WHITE_FIRE_8 = 8;
|
2021-11-21 19:06:32 +01:00
|
|
|
public static final byte CHINESE_9 = 9; //taobao
|
2017-09-14 10:15:14 +02:00
|
|
|
public static final byte ALARM_CLOCK = 10;
|
|
|
|
public static final byte APP_11 = 11;
|
|
|
|
public static final byte INSTAGRAM = 12;
|
|
|
|
public static final byte CHAT_BLUE_13 = 13;
|
|
|
|
public static final byte COW_14 = 14;
|
2021-11-21 19:06:32 +01:00
|
|
|
public static final byte CHINESE_15 = 15; // sender disregarded (amazfit)
|
|
|
|
public static final byte CHINESE_16 = 16; // sender disregarded (amazfit)
|
2017-09-14 10:15:14 +02:00
|
|
|
public static final byte STAR_17 = 17;
|
|
|
|
public static final byte APP_18 = 18;
|
|
|
|
public static final byte CHINESE_19 = 19;
|
|
|
|
public static final byte CHINESE_20 = 20;
|
|
|
|
public static final byte CALENDAR = 21;
|
|
|
|
public static final byte FACEBOOK_MESSENGER = 22;
|
|
|
|
public static final byte VIBER = 23;
|
|
|
|
public static final byte LINE = 24;
|
|
|
|
public static final byte TELEGRAM = 25;
|
|
|
|
public static final byte KAKAOTALK = 26;
|
|
|
|
public static final byte SKYPE = 27;
|
|
|
|
public static final byte VKONTAKTE = 28;
|
|
|
|
public static final byte POKEMONGO = 29;
|
|
|
|
public static final byte HANGOUTS = 30;
|
|
|
|
public static final byte MI_31 = 31;
|
|
|
|
public static final byte CHINESE_32 = 32;
|
|
|
|
public static final byte CHINESE_33 = 33;
|
|
|
|
public static final byte EMAIL = 34;
|
|
|
|
public static final byte WEATHER = 35;
|
|
|
|
public static final byte HR_WARNING_36 = 36;
|
|
|
|
|
|
|
|
public static byte mapToIconId(NotificationType type) {
|
|
|
|
switch (type) {
|
|
|
|
case UNKNOWN:
|
2021-11-21 19:06:32 +01:00
|
|
|
case GENERIC_NAVIGATION:
|
2017-09-14 10:15:14 +02:00
|
|
|
return APP_11;
|
|
|
|
case CONVERSATIONS:
|
2017-09-25 22:34:05 +02:00
|
|
|
case RIOT:
|
|
|
|
case HIPCHAT:
|
2018-02-17 17:33:34 +01:00
|
|
|
case KONTALK:
|
2018-02-17 17:39:15 +01:00
|
|
|
case ANTOX:
|
2021-11-21 19:06:32 +01:00
|
|
|
case GENERIC_SMS:
|
|
|
|
case WECHAT:
|
2017-09-14 10:15:14 +02:00
|
|
|
return WECHAT;
|
|
|
|
case GENERIC_EMAIL:
|
2017-09-25 22:34:05 +02:00
|
|
|
case GMAIL:
|
|
|
|
case YAHOO_MAIL:
|
|
|
|
case OUTLOOK:
|
2017-09-14 10:15:14 +02:00
|
|
|
return EMAIL;
|
|
|
|
case GENERIC_CALENDAR:
|
2018-01-08 15:28:57 +01:00
|
|
|
case BUSINESS_CALENDAR:
|
2017-09-14 10:15:14 +02:00
|
|
|
return CALENDAR;
|
|
|
|
case FACEBOOK:
|
|
|
|
return FACEBOOK;
|
|
|
|
case FACEBOOK_MESSENGER:
|
2021-11-21 19:06:32 +01:00
|
|
|
case SIGNAL:
|
2017-09-14 10:15:14 +02:00
|
|
|
return FACEBOOK_MESSENGER;
|
|
|
|
case GOOGLE_HANGOUTS:
|
2017-09-25 22:34:05 +02:00
|
|
|
case GOOGLE_MESSENGER:
|
2017-09-14 10:15:14 +02:00
|
|
|
return HANGOUTS;
|
|
|
|
case INSTAGRAM:
|
2017-09-25 22:34:05 +02:00
|
|
|
case GOOGLE_PHOTOS:
|
2017-09-14 10:15:14 +02:00
|
|
|
return INSTAGRAM;
|
|
|
|
case KAKAO_TALK:
|
|
|
|
return KAKAOTALK;
|
|
|
|
case LINE:
|
|
|
|
return LINE;
|
2020-10-24 22:27:01 +02:00
|
|
|
case WIRE:
|
2021-11-21 19:06:32 +01:00
|
|
|
case THREEMA:
|
|
|
|
case DISCORD:
|
2017-09-14 10:15:14 +02:00
|
|
|
return CHAT_BLUE_13;
|
|
|
|
case TWITTER:
|
|
|
|
return TWITTER;
|
|
|
|
case SKYPE:
|
|
|
|
return SKYPE;
|
|
|
|
case SNAPCHAT:
|
|
|
|
return SNAPCHAT;
|
|
|
|
case TELEGRAM:
|
|
|
|
return TELEGRAM;
|
|
|
|
case VIBER:
|
|
|
|
return VIBER;
|
|
|
|
case WHATSAPP:
|
|
|
|
return WHATSAPP;
|
|
|
|
case GENERIC_ALARM_CLOCK:
|
|
|
|
return ALARM_CLOCK;
|
|
|
|
}
|
|
|
|
return APP_11;
|
|
|
|
}
|
2017-12-27 08:59:09 +01:00
|
|
|
}
|