EmojiCategory

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

    public internal(set) var cid: Int64
  • Emoji category’s name

    Declaration

    Swift

    public internal(set) var name: String
  • url

    Emoji category’s url

    Declaration

    Swift

    public internal(set) var url: String
  • Emoji list

    Declaration

    Swift

    public internal(set) var emojis: [Emoji]
  • 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