2022-09-30 17:10:03 -07:00
|
|
|
//
|
|
|
|
|
// MessagingEnums.swift
|
|
|
|
|
// Meshtastic
|
|
|
|
|
//
|
|
|
|
|
// Copyright(c) Garth Vander Houwen 9/30/22.
|
|
|
|
|
//
|
2022-12-13 17:47:23 -08:00
|
|
|
import Foundation
|
2022-09-30 17:10:03 -07:00
|
|
|
|
|
|
|
|
enum BubblePosition {
|
|
|
|
|
case left
|
|
|
|
|
case right
|
|
|
|
|
}
|
2022-11-04 10:21:31 -07:00
|
|
|
|
|
|
|
|
enum Tapbacks: Int, CaseIterable, Identifiable {
|
|
|
|
|
|
|
|
|
|
case heart = 0
|
|
|
|
|
case thumbsUp = 1
|
|
|
|
|
case thumbsDown = 2
|
|
|
|
|
case haHa = 3
|
|
|
|
|
case exclamation = 4
|
|
|
|
|
case question = 5
|
|
|
|
|
case poop = 6
|
|
|
|
|
|
|
|
|
|
var id: Int { self.rawValue }
|
|
|
|
|
var emojiString: String {
|
2023-03-06 13:26:04 -08:00
|
|
|
switch self {
|
|
|
|
|
case .heart:
|
|
|
|
|
return "❤️"
|
|
|
|
|
case .thumbsUp:
|
|
|
|
|
return "👍"
|
|
|
|
|
case .thumbsDown:
|
|
|
|
|
return "👎"
|
|
|
|
|
case .haHa:
|
|
|
|
|
return "🤣"
|
|
|
|
|
case .exclamation:
|
|
|
|
|
return "‼️"
|
|
|
|
|
case .question:
|
|
|
|
|
return "❓"
|
|
|
|
|
case .poop:
|
|
|
|
|
return "💩"
|
2022-11-04 10:21:31 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var description: String {
|
2023-03-06 13:26:04 -08:00
|
|
|
switch self {
|
|
|
|
|
case .heart:
|
2023-05-05 09:27:24 -07:00
|
|
|
return "tapback.heart".localized
|
2023-03-06 13:26:04 -08:00
|
|
|
case .thumbsUp:
|
2023-05-05 09:27:24 -07:00
|
|
|
return "tapback.thumbsup".localized
|
2023-03-06 13:26:04 -08:00
|
|
|
case .thumbsDown:
|
2023-05-05 09:27:24 -07:00
|
|
|
return "tapback.thumbsdown".localized
|
2023-03-06 13:26:04 -08:00
|
|
|
case .haHa:
|
2023-05-05 09:27:24 -07:00
|
|
|
return "tapback.haha".localized
|
2023-03-06 13:26:04 -08:00
|
|
|
case .exclamation:
|
2023-05-05 09:27:24 -07:00
|
|
|
return "tapback.exclamation".localized
|
2023-03-06 13:26:04 -08:00
|
|
|
case .question:
|
2023-05-05 09:27:24 -07:00
|
|
|
return "tapback.question".localized
|
2023-03-06 13:26:04 -08:00
|
|
|
case .poop:
|
2023-05-05 09:27:24 -07:00
|
|
|
return "tapback.poop".localized
|
2022-11-04 10:21:31 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|