Skip to content
Snippets Groups Projects

Fact improvements & helpers

Merged 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

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading