Skip to content

Fact improvements & helpers

Dariusz Rybicki requested to merge feature/fact-helpers into development
  • Add FactType enum model with known (.username, .email, .phone) and unknown (.other(Int)) types of facts.
  • Update Fact model properties:
    • type: Inttype: FactType
    • fact: Stringvalue: String
  • Add convenience extensions to [Fact] array:
    • func get(_ type: FactType) -> Fact?
    • func set(_ type: FactType, _ value: String?)
  • Add convenience extensions to Contact model:
    • func getFact(_ type: FactType) throws -> Fact?
    • mutating func setFact(_ type: FactType, _ value: String?) throws
Edited by Dariusz Rybicki

Merge request reports