EmojiCategory

@objc(SBDEmojiCategory)
public final class EmojiCategory : NSObject, Codable
extension EmojiCategory: Mappable
extension EmojiCategory: Serializable

Class to represent emoji cateogry

Since

3.0.180
  • cid

    Emoji category’s key

    Declaration

    Swift

    @objc
    public internal(set) var cid: Int64 { get }
  • Emoji category’s name

    Declaration

    Swift

    @objc
    public internal(set) var name: String { get }
  • url

    Emoji category’s url

    Declaration

    Swift

    @objc
    public internal(set) var url: String { get }
  • Emoji list

    Declaration

    Swift

    @objc
    public internal(set) var emojis: [Emoji] { get }
  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance

  • Default constructor.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance

  • Initialize with json dictionary

    Declaration

    Swift

    public func initWithDictionary(_ json: [String : Any]) -> `Self`?
  • Converts the object into dictionary

    Declaration

    Swift

    public func _toDictionary() -> [String : Any]
  • Serializes this object into data

    Declaration

    Swift

    public func serialize() -> Data?

    Return Value

    optioanal Data instance

  • Deserializes and reconstructs the object

    Declaration

    Swift

    public static func build(fromSerializedData data: Data?) -> `Self`?

    Parameters

    data

    Data instance

    Return Value

    EmojiCategory if parameter is valid, otherwise nil