mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
major refactor, now im going to use generics and "any StickerProtocol" to have more shared logic
changed id on stickerprotocol to string cos of giphy downloadedemojis > downloadedStickers removed hoarder from emojipreview cos its not used added toGif in GifObject
This commit is contained in:
22 files changed
+94
-53
No files matched your search
@@ -9,7 +9,7 @@ import Foundation
|
||||
|
||||
struct SlackResponse: Identifiable, Codable {
|
||||
var type: String
|
||||
var id: UUID
|
||||
var id: String
|
||||
var name: String
|
||||
var imageUrl: String
|
||||
var alias: String?
|
||||
|
||||
@@ -29,4 +29,8 @@ struct GifObject: Codable, Identifiable {
|
||||
var title: String
|
||||
var alt_text: String
|
||||
var is_low_contrast: Bool
|
||||
|
||||
var toGif: Gif {
|
||||
return Gif(name: self.title, url: URL(string: self.images.fixed_width.url)!, id: self.id)
|
||||
}
|
||||
}
|
||||